我想制作下面的图片 。 集合视图应该可以在垂直方向上滚动,但是我想要多个单元格,它们将再次在一行中,并且可以水平滚动。 每个部分的滚动应独立于其他部分。 我正在使用的部分标题是通过补充标题。 你能提出一些好的方法来实现它吗?
I want to make something like the following image. the collection view should be scrollable in Vertical direction but i want multiple cells which would again be in one line and would be horizontally scrollable. Also scrolling at every section should be independent of every other section. The section headers I am using is via the supplementary headers. Can you please suggest any good way to achieve it?
最满意答案
我正在使用垂直滚动的UICollectionView,当我需要水平滚动时,我只需添加一个自定义的UICollectionViewCell,它有一个嵌套的UICollectionView,它为水平滚动设置。 委托方法和数据源方法您可以根据您的实现找出结果。
I am using a UICollectionView for the vertical scroll and, when I need horizontal scroll in it I just add a custom UICollectionViewCell, which has a nested UICollectionView in it set up for a horizontal scroll. The delegate methods and data source methods You can figure out depending on Your implementation.
更多推荐
发布评论