2

我有两个不同的视图需要在 UICollectionView 中实现。我的问题是如何使用情节提要向 UICollectionView 添加两个 UICollectionReusableView ?

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

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

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

但是如何将两个 UICollectionReusableView 添加到情节提要并配置它们。

4

1 回答 1

1

将它们拖到文档大纲中:

在此处输入图像描述

于 2014-10-05T22:50:45.570 回答