Answer the question
In order to leave comments, you need to log in
How to create a collection of scrolling cards in iOS?
Good afternoon. I wanted to know how to create a collection of cards so that they can be scrolled? Interested in the implementation of the cards and the scrolling process.
I want to do something like this: https://www.dropbox.com/s/yj7tz9qgliwsbiv/xyxqoddn...
Answer the question
In order to leave comments, you need to log in
Good afternoon.
I did this with a regular UIScrollView. It has a pagingEnabled property and can scroll vertically. To see the edges of neighboring cards, you will have to tinker, but nothing complicated.
UICollectionView
collectionView.collectionViewLayout.scrollDirection = UICollectionViewScrollDirectionHorizontal;
- (NSInteger)numberOfSectionsInCollectionView:(UICollectionView *)collectionView
{
return 1;
}
- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath
{
...
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question