DIfferent Scroll direction for multiple sections o

2019-06-23 22:11发布

I have an app with UICollectionView with 2 sections.My requirement is to have the first section should scroll in horizontal direction with one row only, while the second should scroll in vertical direction.I am working with Swift 2.1.

Please advice some solutions.

1条回答
做个烂人
2楼-- · 2019-06-23 22:49

Your UICollectionView with 2 sections

Section 1: have only one UICollectionViewCell will contain a UICollectionView(horizontal direction) defined by its datasource.

Section 2: your current datasource.

You can check this one:

UICollectionView within a UICollectionViewCell (Swift)

查看更多
登录 后发表回答