首页 > 其他 > 详细

unable to dequeue a cell with identifier Cell

时间:2015-07-16 09:56:27      阅读:202      评论:0      收藏:0      [点我收藏+]

ios开发,cell输出数据的时候出现问题

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‘ 


解决方法:

声明 表格 的时候,加上下面这行代码就行了

        表格?.registerClass(UITableViewCell.self, forCellReuseIdentifier: "你的cell identifier")

unable to dequeue a cell with identifier Cell

原文:http://my.oschina.net/netmouse/blog/479104

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!