[英]Custom UICollectionView Layout
The UICollectionView layout I need to implement contains three sections, one below the other vertically, and each section is scrollable horizontally. 我需要实现的UICollectionView布局包含三个部分,一个在另一个下面垂直,每个部分都可以水平滚动。
SECTION 1: 1 2 3 4 5 .............. 第1节:1 2 3 4 5 ..............
SECTION 2: 1 2 3 4 5 .............. 第2节:1 2 3 4 5 ..............
SECTION 3: 1 2 3 4 5 .............. 第3节:1 2 3 4 5 ..............
Since the UICollectionView has only one scrollView, all the sections scroll at a time but not one at a time. 由于UICollectionView只有一个scrollView,因此所有部分一次滚动,但不能一次滚动。 So I feel custom Layout won't help in this situation. 所以我觉得自定义布局在这种情况下无济于事。 Please throw some light on other possible implementations of this. 请详细说明其他可能的实现。
Thank you. 谢谢。
One UITableView
with 3 rows. 一个UITableView
有3行。 Each with a UICollectionView
. 每个都有一个UICollectionView
。
UICollectionView
带有三个自定义UITableViewCell
的UITableView
怎么样,每个UITableViewCell
包含一个UICollectionView
?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.