【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>>
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")
来源:oschina
链接:https://my.oschina.net/u/942301/blog/479104