完整报错信息:
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'unable to dequeue a cell with identifier cellId - must register a nib or a class for the identifier or connect a prototype cell in a storyboard'
原因:在代码中给定了控件id的时候却没有在面板storyboard中写上相应的id,给相应的控件写上id即可
本文解决了iOS开发中Storyboard控件ID未正确设置导致的应用崩溃问题。通过在Storyboard中为控件分配正确的ID,可以避免运行时出现NSInternalInconsistencyException异常。
1350

被折叠的 条评论
为什么被折叠?



