unable to dequeue a cell with identifier shopCell

方法一:spa

将方法dequeueReusableCellWithIdentifier: forIndexPath:替换成方法dequeueReusableCellWithIdentifier:orm

方法二:it

在方法dequeueReusableCellWithIdentifier: forIndexPath:的前面添加方法[self.tableView registerClass:[UITableViewCell class] forCellReuseIdentifier:reuseIdentifier];table

若是是自定义cell的话,若类名为xxxxcell,那么添加的方法将改成[self.tableView registerClass:[xxxxcell class] forCellReuseIdentifier:reuseIdentifier];class

相关文章
相关标签/搜索