ekeventstore - 我可以在不同的线程上使用相同的 EKEventStore 实例吗?

标签 ekeventstore

我想知道使用 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/

相关文章:

ios - EKEventStore编程Xcode iOS异步搜索

ios - 如何删除保存为 EKReminder 的提醒?

ios - calendarsForEntityType :EKEntityTypeReminder is empty first time, 随后工作

iOS 订阅 webcal 日历

swift - 如何在 Swift iOS 8 中使用 requestAccessToEntityType 方法

objective-c - 使用开始日期获取 iPhone 日历中的所有事件

ios - 事件(带有标识符 :) fails after application restart

ios - Ekevents 在日历中多次添加?

objective-c - 获取实体类型 3 的共享日历邀请时出错,Xcode 6.1.1。 EKCalender、EKSource、EKEventstore 和 Objective C

iphone - EKEventStore 中没有源