您的位置:首页 > 产品设计 > UI/UE

unable to dequeue a cell with identifier shopCell

2016-01-06 00:00 417 查看
摘要: unable to dequeue a cell with identifier shopCell - must register a nib or a class for the identifier or connect a prototype cell in a storyboar

方法一:
将方法dequeueReusableCellWithIdentifier: forIndexPath:替换成方法dequeueReusableCellWithIdentifier:
方法二:
在方法dequeueReusableCellWithIdentifier: forIndexPath:的前面添加方法[self.tableView registerClass:[UITableViewCell class] forCellReuseIdentifier:reuseIdentifier];
如果是自定义cell的话,若类名为xxxxcell,那么添加的方法将改为[self.tableView registerClass:[xxxxcell class] forCellReuseIdentifier:reuseIdentifier];
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: