How can I test if the core data database is empty? I tried:
NSIndexPath *path1 = [NSIndexPath indexPathForRow:0 inSection:0]; NSManagedObject *managedObject
not perfect I admit but it works
my code:
id sectionInfo = [[self.fetchedResultsController sections] objectAtIndex:0]; int fufu = [sectionInfo numberOfObjects]; if(fufu!=0){DATABASE IS NOT EMPTY}else{DATABASE IS EMPTY}
if someone know something more efective pls post it