Now I have a Core Data entity "AAA", and I use a method to fetch its result:
- (AAA *)result{
NSEntityDescription *Entity = [NSEntityDescription entityForName:@"AAA" inManagedObjectContext:self.managedObjectContext];
NSFetchRequest *fetchRequest = [[NSFetchRequest alloc]init];
[fetchRequest setEntity:aaaEntity];
NSError *error = nil;
NSArray *fetchRequestResult = [self.managedObjectContext executeFetchRequest:fetchRequest error:&error];
AAA *aaa = fetchRequestResult.lastObject;
return aaa;
}
Then I use Xcode Instruments to check the memory status, it shows:
VM:Core Data Object IDs 4.02MB(Live Bytes)
Is the entity still live in the memory?