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")
时间: 2024-12-12 02:27:50