NSPredicate that filters out subclass results

浪尽此生 提交于 2019-12-05 11:23:38

You can set

[fetchRequest setIncludesSubentities:NO];

so that the fetch request returns only objects of exactly the entity type of the request, and does not include subentities.

It is (as far as I know) not possible to refer to the objects class or entity name in a predicate if the predicate is used in a Core Data fetch request.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!