Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can we set different flowlayout in different sections within a UICollectionView?

Here is the picture for explanation http://childhoodgamedev.qiniudn.com/xincheng_demo.png

Question Description

In section 0, the flowlayout is common, like a grid, in section 1, the flowlayout is circular (They are in a UICollectionView).

The Target

With the users' scrolling, the first part is grid flowlayout, the second part is a custom and more complex flowlayout.

Can we implement this? If not, any one good ideas? Thanks.

like image 897
ChildhoodAndy Avatar asked Dec 02 '14 07:12

ChildhoodAndy


1 Answers

It looks like ChildhoodAndy solved his problem, but for future readers this is probably a good candidate for a UIPageViewController using UIPageViewControllerTransitionStyleScroll. Each page would be its own UICollectionViewController with whatever custom layout is needed.

like image 153
jszumski Avatar answered Sep 20 '22 21:09

jszumski