I read much about Core Data.. but what is an efficient way to make a count over an Entity-Type (like SQL can do with SELECT count(1) ...). Now I just solved this task with s
If you want to find count for specific predicated fetch, i believe this is the best way:
NSError *err; NSUInteger count = [context countForFetchRequest:fetch error:&err]; if(count > 0) { NSLog(@"EXIST"); } else { NSLog(@"NOT exist"); }