我的应用程序在模拟器中运行正常,但是当我在设备上运行它时,它不显示获取的结果!
代码:
NSFetchRequest *request = [[NSFetchRequest alloc] init];
NSEntityDescription *entity = [NSEntityDescription entityForName:@"Jobs" inManagedObjectContext:_managedObjectContext];
[request setEntity:entity];
NSError *error = nil;
results = [_managedObjectContext executeFetchRequest:request error:&error];