Assertion failure in dequeueReusableCellWithIdentifier:forIndexPath:

前端 未结 22 1320
长情又很酷
长情又很酷 2020-11-22 10:10

So I was making an rss reader for my school and finished the code. I ran the test and it gave me that error. Here is the code it\'s referring to:

- (UITableV         


        
22条回答
  •  一生所求
    2020-11-22 11:03

    Although this question is fairly old, there is another possibility: If you are using Storyboards, you simply have to set the CellIdentifier in the Storyboard.

    So if your CellIdentifier is "Cell", just set the "Identifier" property: enter image description here

    Make sure to clean your build after doing so. XCode sometimes has some issues with Storyboard updates

提交回复
热议问题