如何添加几个UICollectionReusableView

时间:2014-10-05 20:17:47

标签: ios uicollectionview uicollectionreusableview

我有两个不同的视图,我需要在UICollectionView中实现。我的问题是如何使用故事板将两个UICollectionReusableView添加到UICollectionView?

例如,我可以将其添加为源代码:

[self.collectionView registerClass:[HeaderView class] forSupplementaryViewOfKind:UICollectionElementKindSectionHeader withReuseIdentifier:@“HeaderView”];

并且在故事板中还有另一个标题,

但是如何将两个UICollectionReusableView添加到故事板并进行配置。

1 个答案:

答案 0 :(得分:1)

将它们拖到文档大纲中:

enter image description here