Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UICollectionView with horizontal paging and vertical scrolling

Is it possible to have a collection view with horizontal paging, as well as vertical scrolling?

I would like to have the effect of pages of collection views, where the content can be scrolled vertically, say 20 items, with 5 visible at a time. I would also like to support pages horizontally which also hold 20 items, 5 visible at a time.

Is a single collection view able to handle this or should it be a scrollview with paging, containing collectionviews? That seems a bit weird and the gestures would interfere.

Currently I am only able to page in one direction, which stops scrolling in the other direction.

like image 440
some_id Avatar asked Nov 08 '22 15:11

some_id


1 Answers

ok you want to make interface like Netflix app there is a lot of tutorial available to achieve this here is the link

1.https://ashfurrow.com/blog/putting-a-uicollectionview-in-a-uitableviewcell-in-swift/

2.http://www.thorntech.com/2015/08/want-your-swift-app-to-scroll-in-two-directions-like-netflix-heres-how/

the above tutorial helped me. and i had given an answer to similar type question

Swift - how to open another viewcontroller with CollectionViewCell inside UITableViewCell

like image 182
Ajay Singh Thakur Avatar answered Nov 14 '22 21:11

Ajay Singh Thakur