1
我要展示一些图片与像标题和副标题这将是水平滑动浏览一些信息。基本上,它会像Airbnb应用程序一样显示category and elements in it with horizontal swipe
。唯一的区别是,在我的案例中,类别(行)的数量是固定的,which is 2
。两行的数据源相同。我有两种方法,第一种是使用two CollectionView
,第二种是使用a TableView and nesting the CollectionView inside tableview cell
。谷歌搜索,只有两种方法的实现部分,而不是比较或方法的用例。所以我的问题是,我应该遵循哪个流程,为什么?嵌套集合的看法是好还是多个集合视图
我认为这个回购会帮助你。 https://github.com/ashfurrow/AFTabledCollectionView –
你可以在tableview中添加collectionview。请检查这个。 https://ashfurrow.com/blog/putting-a-uicollectionview-in-a-uitableviewcell/ –
@Jayesh:我想知道这个问题的更好的方法。 –