Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 NSPredicate 过滤 NSManagedObject。我想要的是检索在指定属性上具有非空值的对象,那么,如何创建 NSPredicate 实例?提前致谢!
这很简单:
[NSPredicate predicateWithFormat:@"yourProperty != NULL"];
应该是诀窍。