Keep getting nil from dequeueReusableCellWithIdentifier?

后端 未结 5 1271
清酒与你
清酒与你 2020-12-11 05:20

I\'ve created a prototype cell with identifier \"mainViewTableCell\" in storyboard file and connected the main table view with a custom controller class named \"NTTableViewC

5条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-11 05:43

    Typical cause:

    [tableView dequeueReusableCellWithIdentifier: @"id"]; does not match Xcode > Attribute Inspector > Table View Cell > Identifier > id

提交回复
热议问题