是否可以在 Swift 的单个 UICollectionView 中制作两个具有多个内容的 UICollectionView?

Is it possible to make two UICollectionView with multiple content in single UICollectionView in Swift?

是否可以制作两个UICollectionView,第一个UICollectionView指定为触发器,第二个UICollectionView显示不同的图片内容所以当用户select "Desire"会有7张图片和10张图片当用户 select "Nature":

当然有可能。您需要设置不同的对象作为每个集合视图的数据源,或者编写视图控制器以在数据源方法中为每个集合视图提供不同的信息。

编辑:

看看这个话题:

Multiple UICollectionView in one controller

它没有像您想要的那样使用 master/detail 方法,但它至少应该让您入门。