ios学习之——ios6之后UITableViewCell添加子视图所遇到的问题

一,报以下错误

Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'unable to dequeue a cell with identifier txTableCell - must register a nib or a class for the identifier or connect a prototype cell in a storyboard'

 解决方法:

把用UITableViewController来做storyboard中您要显示的UITableview的视图控制器。确保UITableView不是嵌在一个View中。(原因不明)。

原文地址:https://www.cnblogs.com/liaojinpiao/p/3653081.html