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

来源:互联网 发布:无线网络测试软件 编辑:程序博客网 时间:2024/06/02 06:37

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

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

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

应该改成

 TopPageTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:cellID ];
0 0
原创粉丝点击