问题描述
此处是说明图片http://childhoodgamedev.qiniudn.com/xincheng_demo.png
在第0部分中,流程布局是常见的,就像网格一样,在第1部分中,流程布局是圆形的(它们位于UICollectionView中).
In section 0, the flowlayout is common, like a grid, in section 1, the flowlayout is circular (They are in a UICollectionView).
随着用户的滚动,第一部分是网格布局,第二部分是自定义且更复杂的布局.
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.
推荐答案
看起来ChildhoodAndy解决了他的问题,但是对于将来的读者来说,这可能是使用UIPageViewControllerTransitionStyleScroll
的UIPageViewController
的不错的选择.每个页面都将是其自己的UICollectionViewController
,并具有所需的任何自定义布局.
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.
这篇关于我们可以在UICollectionView的不同部分中设置不同的布局吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!