Vovo? 2016-03-30 06:27 采纳率: 0%
浏览 2348

iOS collectionView 的重用问题

我是个新手,之前用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'

求各位大神解惑

  • 写回答

1条回答

  • M.François 博客专家认证 2016-03-30 06:52
    关注

    删除collectionView和viewcontroller.m关系,你链接乱了,最好重新创建一个Nib和.h.m文件

    评论

报告相同问题?

悬赏问题

  • ¥15 一道python难题2
  • ¥15 一道python难题
  • ¥15 用matlab 设计一个不动点迭代法求解非线性方程组的代码
  • ¥15 牛顿斯科特系数表表示
  • ¥15 arduino 步进电机
  • ¥20 程序进入HardFault_Handler
  • ¥15 oracle集群安装出bug
  • ¥15 关于#python#的问题:自动化测试
  • ¥20 问题请教!vue项目关于Nginx配置nonce安全策略的问题
  • ¥15 教务系统账号被盗号如何追溯设备