unable to dequeue a cell with identifier Cell

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

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'  app


解决方法: ide

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

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

相关文章
相关标签/搜索