我有两个不同的视图,我需要在UICollectionView中实现。我的问题是如何使用故事板将两个UICollectionReusableView添加到UICollectionView?
例如,我可以将其添加为源代码:
[self.collectionView registerClass:[HeaderView class] forSupplementaryViewOfKind:UICollectionElementKindSectionHeader withReuseIdentifier:@“HeaderView”];
并且在故事板中还有另一个标题,
但是如何将两个UICollectionReusableView添加到故事板并进行配置。
答案 0 :(得分:1)
将它们拖到文档大纲中: