ios - 如何获取本地日历更新回调

标签 ios iphone ekeventstore

如果从外部源(其他设备,谷歌)向其添加事件,是否有任何方法可以从 EKEventStoreEKCalendar 接收回调?

最佳答案

所以我有一个 EKEventStore 的监听器

[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveEventStoreChangedNotification:) name:EKEventStoreChangedNotification object:nil];

每次 EventStore 数据更改时都会调用它。

关于ios - 如何获取本地日历更新回调,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39979070/

相关文章:

iOS 7 presentViewController 显示黑屏和 SIGABRT

iphone - iPhone照片微笑操作应用程序

iphone - 如何从 NSString 中获取整数的数字?

ios - calendarsForEntityType返回空数组

ios - 如何在iOS中的特定日期添加事件?

iOS崩溃: MTLRenderPassDescriptor null after rotation

ios - iPhone 5s Touch ID 传感器 API

ios - TableView 问题,indexPath 为零

iphone - Objective-C 在 iPhone 上测试应用程序,更新数据,数据没有改变

ios - 从日历中检索带有标识符的事件时应用程序崩溃