[iOS] NSInternalInconsistencyException, reason: request for rect at invalid index path

This error means that the application cannot retrieve cell for the specified indexPath — I think there are many things that can cause this but for my case, I just forget to modify

- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView

in datasource to have it returns actual number of section in the table (It is 0 by default)

Note : datasource for the table is usually the ViewController itself

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s