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: