Why am I getting an error about being unable to dequeue when my UITableView tries to load?

前端 未结 4 1622
抹茶落季
抹茶落季 2020-12-30 04:27

I get the following error:

* Terminating app due to uncaught exception \'NSInternalInconsistencyException\', reason: \'unable to dequeue a ce

4条回答
  •  长发绾君心
    2020-12-30 05:12

    If using a tableview (not a table view controller) as I was, there are not cells that appear by default.

    In the storyboard select the tableview Open the Attributes inspector Change prototype cells from 0 to 1 Select the newly displayed table cell In the Attributes inspector set the Identitifier to "FontCell"

提交回复
热议问题