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.
我似乎记得可以从 CoreData 中的 NSPredicate 返回结果对象计数而无需实际执行提取,但我找不到对此的任何引用。
有人可以确认我不是在做梦(做梦很可悲!),在另一个线程中这样做是否安全?
谢谢
安迪
请参阅此问题的答案。您只需在提供的代码中将您的谓词添加到获取请求中。