IOS开发 TableView unable to dequeue a cell with identifier Cell - must register a
苹果-ios  /  houtizong 发布于 2年前   120
最近转做IOS开发,目前还在研究界面阶段,刚刚在用TableView做列表的时候碰到以下错误:
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'unable to dequeue a cell with identifier Cell - must register a nib or a class for the identifier or connect a prototype cell in a storyboard'
网上找到的其他文档都没能解决我的这个问题,后来想到我的这个TableView不是从控件里面拖过来的TableView,而是从UIView改类型过来的,于是我把这个View删掉,然后从控件列表里拖了一个标准的TableView Controller过来,然后就可以了。
仅作记录,如果其他的朋友遇到同样的问题可以检查下自己的TableView Controller是不是标准的Table控件。
请勿发布不友善或者负能量的内容。与人为善,比聪明更重要!
技术博客集 - 网站简介:
前后端技术:
后端基于Hyperf2.1框架开发,前端使用Bootstrap可视化布局系统生成
网站主要作用:
1.编程技术分享及讨论交流,内置聊天系统;
2.测试交流框架问题,比如:Hyperf、Laravel、TP、beego;
3.本站数据是基于大数据采集等爬虫技术为基础助力分享知识,如有侵权请发邮件到站长邮箱,站长会尽快处理;
4.站长邮箱:[email protected];
文章归档
文章标签
友情链接