I have an app in which There is a Card View
.
I have put the card in UICollectionViewCell
.
My Flow layout is Horizontal
.
Cards was scrolling Horizontaly
.
Now the problem rises when I have to support iPhone4s
.
The Vertical Length of Card is Very long to fit in Screen.So I have to Scroll the Content in UICollectionView
Vertically also.
So I Decided to put my UICollectionView
inside UIScrollView
.
In my viewDidLoad
I am setting the content size of UIScrollView
.
But it is not scrolling.
What I am missing.??
you can have tableview and then add collection view in tableview cell and thus you can have horizontal as well as vertical scrolling without any interruption. UITableView->UITableViewCell->UICollectionView in tableview cell->load cells in collectionview
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.