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

前端 未结 22 2170
面向向阳花
面向向阳花 2020-12-12 17:33

I am fairly new to coding in general and really new to Xcode (Swift). I understand that I need to register a nib or a class but I don\'t understand \'where or how?\'.

<
22条回答
  •  清歌不尽
    2020-12-12 18:19

    I ran into this message when UITableView in the IB was moved into another subview with Cmd-C - Cmd-V.

    All identifiers, delegate methods, links in the IB etc. stay intact, but exception is raised at the runtime.

    The only solution is to clear all inks, related to tableview in the IB (outlet, datasource, delegate) and make them again.

提交回复
热议问题