tableView相关
Assertion failure in -[UITableView dequeueReusableCellWithIdentifier:forIndexPath:]
错误描述
解决方案:
- Assertion failure in -[UITableView dequeueReusableCellWithIdentifier:forIndexPath:] /SourceCache/UIKit_Sim/UIKit-2935.137/UITableView.m:5439
2014-07-28 10:53:13.402 TableViewDemo[1783:60b] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'unable to dequeue a cell with identifier tableSampleIndentifier - must register a nib or a class for the identifier or connect a prototype cell in a storyboard'
将tableView:cellForRowAtIndexPath:中的函数调用dequeueReusableCellWithIdentifier:forIndexPath:换成dequeueReusableCellWithIdentifier:

本文解决在使用UITableView时遇到的错误,提示无法通过标识符 dequeuacell,提供了将 tableView:cellForRowAtIndexPath: 中的函数调用更改为 dequequeueReusableCellWithIdentifier:的解决方案。
1468

被折叠的 条评论
为什么被折叠?



