and as something I had to experience: NSString * string = [NSString stringWithFormat:@"contact == %@", self.contact]; NSPredicate* predicate = [NSPredicate predicateWithFormat:string]; does not the same as NSPredicate* predicate = [NSPredicate predicateWithFormat:@"contact == %@", self.contact]; :D
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
int numberOfRows = 0;
// Return the number of rows in the section.
if ([[fetchedResultsController sections] count] > 0) {
id <NSFetchedResultsSectionInfo> sectionInfo = [[fetchedResultsController sections] objectAtIndex:section];
numberOfRows = [sectionInfo numberOfObjects];
}
return numberOfRows;
}
@perfectionming May I suggest you an easy example of creating log file of errors of your app on sdcard and write logs to it, instead of digging cause of your exceptions and errors ?