Why am I getting the following error:
*** Assertion failure in -[TTTableView _createPreparedCellForGlobalRow:withIndexPath:], /SourceCache/UIKit_Sim/UIKit-1448.89/UITableView.m:5678
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'UITableView dataSource must return a cell from tableView:cellForRowAtIndexPath:'
*** Call stack at first throw:
How do I fix this?
the point where it stops is:
- (void)layoutSubviews {
[super layoutSubviews]; //right here
this is inside TTTableView.m
‘UITableView dataSource must return a cell from tableView:cellForRowAtIndexPath:’
There’s your answer. You must be returning a cell. Either your datasource isn’t set or tableView:cellForRowAtIndexPath: isn’t returning anything.