Assertion failure in dequeueReusableCellWithIdentifier:forIndexPath:

前端 未结 22 1316
长情又很酷
长情又很酷 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:48

    I had the same issue, was having the same error and for me it worked like this:

    [self.tableView registerNib:[UINib nibWithNibName:CELL_NIB_HERE bundle: nil] forCellReuseIdentifier:CELL_IDENTIFIER_HERE];
    

    Maybe it will be usefull for someone else.

提交回复
热议问题