I have this code that is crashing with error *** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[NSArray objectAtIndex:]: index 0 beyond bounds for empty array'
at this line:
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
MyObject *myCode = [self.fetchedResultsController objectAtIndexPath:indexPath];
}
I don't see whats wrong here, it is pulling the data from a fetch.