天天看点

unable to dequeue a cell with identifier - must register a nib or a class for the identifier...问题

之前也曾遇见这个问题(或者类似问题),但是忘了是怎么产生的了。

这次的问题出现在以下代码

TopPageTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:cellID forIndexPath:indexPath ];
           

应该改成