unable to dequeue a cell with identifier xxx - must register a nib or a class for the identifier
来源:互联网 发布:jquery json转object 编辑:程序博客网 时间:2024/06/03 12:54
最近在研究IOS6.0 自带的下拉刷新列表时,遇到了一个crash,解决之后记录下来,方便后期查看!
crash Log,截图如下:
有两个解决方法:
方法一:
将方法dequeueReusableCellWithIdentifier: forIndexPath:替换成方法dequeueReusableCellWithIdentifier:
方法二:
在方法dequeueReusableCellWithIdentifier: forIndexPath:的前面添加方法[self.tableView registerClass:[UITableViewCell class] forCellReuseIdentifier:reuseIdentifier];
如果是自定义cell的话,若类名为xxxxcell,那么添加的方法将改为[self.tableView registerClass:[xxxxcell class] forCellReuseIdentifier:reuseIdentifier];
0 0
- unable to dequeue a cell with identifier xxx - must register a nib or a class for the identifier
- unable to dequeue a cell with identifier cell - must register a nib or a class for the identifier or
- unable to dequeue a cell with identifier xxx - must register a nib or a class fo
- unable to dequeue a cell with identifier - must register a nib or a class for the identifier...问题
- unable to dequeue a cell with identifier Identify - must register a nib or a class for the identifie
- TableView unable to dequeue a cell with identifier Cell - must register a class or Nib
- UITableViewCell unable to dequeue a cell with identifier Cell - must register a nib or a class for t
- UITableView 的一个常见错误'unable to dequeue a cell with identifier Cell - must register a nib or a class f
- swift写一个简单的列表unable to dequeue a cell with identifier reuseIdentifier - must register a nib or a cla
- must register a nib or a class for the identifier or connect a prototype cell in a storyboard'的解决办法
- Xcode error: unable to dequeue a cell with identifier cell
- Xcode unable to dequeue a cell with identifier
- UITableView使用注意事项(unable to dequeue a cell with identifier)
- 哈02—kill error_______unable to dequeue a cell with identifier Cell
- iOS 如何解决'could not dequeue a view of kind: UICollectionElementKindCell with identifier cell
- Could not load the "logo.png" image referenced from a nib in the bundle with identifier
- Could not load the "" image referenced from a nib in the bundle with identifier XXXXX
- Could not load the "*.png" image referenced from a nib in the bundle with identifier
- 黑马程序员——【Java】IO——File:删除文件夹
- windows7 配置JDK7环境变量
- 【Winpcap新手】使用Winpcap编程,无法捕获数据包
- jquery weather 天气显示控件
- 调整数组顺序使奇数位于偶数前面
- unable to dequeue a cell with identifier xxx - must register a nib or a class for the identifier
- 使用ping测试MTU值
- magento 分类指定id插入,id存在更新 - create category by category id
- hadoop0.20.2中的KeyValueInputFormat
- C# .net 如何抓取网页内容
- new 和 alloc/init 的差别
- EVT、DVT、PVT、MP等简介
- 黑马程序员——【Java】IO——File:遍历目录下java文件
- uploadify上传控件