我是个新手,之前用xib做collectionView和collectionViewCell成功了。
这次在sotoryboard里拖了个collectionView,并连了线,然后在viewcontroller.m里的dataSoure中加载用xib方法写的collectionViewCell,但是出现了问题
{
'could not dequeue a view of kind: UICollectionElementKindCell with i dentifier CollectionViewCell5 - must register a nib or a class for the identifier or connect a prototype cell in a storyboard'
}
求各位大神解惑
iOS collectionView 的重用问题
- 写回答
- 好问题 0 提建议
- 追加酬金
- 关注问题
- 邀请回答
-