我想知道使用 EKEventstore
的单个实例是否安全在不同的线程上?我在任何地方都找不到关于它的任何信息。
我打算得到一个独特的 EKCalendar
每个线程上的实例。
最佳答案
EKEventStore reference中对enumerateEventsMatchingPredicate:usingBlock:和eventsMatchingPredicate:的描述暗示这样做是安全的:
This method is synchronous. For asynchronous behavior, run the method on another thread with dispatch_async or NSOperation.
我目前正在我的一个应用程序中执行此操作,并且它似乎正在运行。
关于ekeventstore - 我可以在不同的线程上使用相同的 EKEventStore 实例吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17108347/