Assertion failure in dequeueReusableCellWithIdentifier:forIndexPath:

前端 未结 22 1396
长情又很酷
长情又很酷 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 10:44

    FWIW, I got this same error when I forgot to set the cell identifier in the storyboard. If this is your issue then in the storyboard click the table view cell and set the cell identifier in the attributes editor. Make sure the cell identifier you set here is the same as

    static NSString *CellIdentifier = @"YourCellIdenifier";
    

提交回复
热议问题