关于-[UITableView _configureCellForDisplay:forIndexPath:].....UITableView.m:7962错误的解决
来源:互联网 发布:印象笔记 为知笔记 编辑:程序博客网 时间:2024/06/07 05:37
如果此文帮助了您,请点击喜欢或评论,您的支持永远都是我前行的动力.
本人在关于viewController中的添加tableView时一直显示此错误(错误如下),
2016-01-08 17:04:41.647 playerOnline[4502:371177] *** Assertion failure in -[UITableView _configureCellForDisplay:forIndexPath:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit_Sim/UIKit-3512.30.14/UITableView.m:79622016-01-08 17:04:41.662 playerOnline[4502:371177] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'UITableView (<UITableView: 0x7fbc3a0cf600; frame = (0 154; 414 1000); clipsToBounds = YES; gestureRecognizers = <NSArray: 0x7fbc38d27490>; layer = <CALayer: 0x7fbc38dc8450>; contentOffset: {0, 0}; contentSize: {414, 4400}>) failed to obtain a cell from its dataSource (<DataListViewController: 0x7fbc38c80f30>)'
经过解决,发现在tableView cellForRowAtIndexPath的方法中添加一句话问题就可以解决(添加图中注释的语句).
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{ UITableViewCell *ncell = [tableView dequeueReusableCellWithIdentifier:identifierdata];// if(ncell == nil){// //ncell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:identifierdata];// // }
转载请注明出处.
0 0
- 关于-[UITableView _configureCellForDisplay:forIndexPath:].....UITableView.m:7962错误的解决
- 关于 [UITableView _configureCellForDisplay:forIndexPath:]断言失败问题接解决
- UITableView _configureCellForDisplay:forIndexPath: crash
- iOS常见错误4-UITableView _configureCellForDisplay:forIndexPath:错误
- Assertion failure in -[UITableView _configureCellForDisplay:forIndexPath:]
- Assertion failure in -[UITableView _configureCellForDisplay:forIndexPath:]
- Assertion failure in -[UITableView _configureCellForDisplay:forIndexPath:]
- Assertion failure in -[UITableView _configureCellForDisplay:forIndexPath:]
- Assertion failure in -[UITableView _configureCellForDisplay:forIndexPath:]
- Assertion failure in -[UITableView _configureCellForDisplay:forIndexPath:]
- Assertion failure in -[UITableView _configureCellForDisplay:forIndexPath:]
- Assertion failure in -[UITableView _configureCellForDisplay:forIndexPath:]
- Assertion failure in -[UITableView _configureCellForDisplay:forIndexPath:]
- Assertion failure in -[UITableView _configureCellForDisplay:forIndexPath:]
- storyboard Assertion failure in -[UITableView _configureCellForDisplay:forIndexPath:]
- Assertion failure in -[UITableView _configureCellForDisplay:forIndexPath:]解决办法
- UITableView中Cell报错[UITableView _configureCellForDisplay:forIndexPath:]
- 使用tableview的时候出现crash:Assertion failure in -[UITableView _configureCellForDisplay:forIndexPath:]
- poj2195 bfs+最小权匹配
- 使用MeidaStore.Audio获得手机中的音频文件
- Issue 182191:Adjustpan works only first time if EditText's gravity is center or center_horizontal
- 为工程添加上下文菜单(ContextMenu)
- JAVA排序
- 关于-[UITableView _configureCellForDisplay:forIndexPath:].....UITableView.m:7962错误的解决
- MediaStore类的使用
- 各种协议的探究
- hdu4489 组合公式+dp
- 简单递推公式转换矩阵求解
- hdu2604 递推转换矩阵快速幂
- hdu4861 我只能说这是找规律=.=
- hdu4864不是一般的贪心
- 15年多校第一场七题hdu5294