问题
Using NSFetchRequest, is it possible to avoid fetching a NSManagedObject that has been or will be deleted?
I know it's possible to check -isDeleted or if -managedObjectContext returns nil, but is there a way to do this in the database layer?
回答1:
Technically, if the object is truly deleted it will not show up at the database layer. What are the symptoms of the problem presenting as?
来源:https://stackoverflow.com/questions/9415071/avoid-fetching-deleted-nsmanagedobjects