ekeventstore

EKEventStore access request crashes on iOS 10. Message:The app's Info.plist must contain an NSRemindersUsageDescription key

天大地大妈咪最大 提交于 2021-02-20 00:49:12
问题 My Code: EKEventStore* eventStore = [[EKEventStore alloc] init]; [eventStore requestAccessToEntityType:EKEntityTypeReminder completion:^(BOOL granted, NSError * _Nullable error) { }]; The app's Info.plist already contain an NSRemindersUsageDescription key and NSCalendarsUsageDescription key, but the code below works fine on iOS 8 and 9, but on iOS 10 it crashes .like: [access] This app has crashed because it attempted to access privacy-sensitive data without a usage description. The app's

EKEventStore access request crashes on iOS 10. Message:The app's Info.plist must contain an NSRemindersUsageDescription key

倾然丶 夕夏残阳落幕 提交于 2021-02-20 00:48:28
问题 My Code: EKEventStore* eventStore = [[EKEventStore alloc] init]; [eventStore requestAccessToEntityType:EKEntityTypeReminder completion:^(BOOL granted, NSError * _Nullable error) { }]; The app's Info.plist already contain an NSRemindersUsageDescription key and NSCalendarsUsageDescription key, but the code below works fine on iOS 8 and 9, but on iOS 10 it crashes .like: [access] This app has crashed because it attempted to access privacy-sensitive data without a usage description. The app's

EKEventStore access request crashes on iOS 10. Message:The app's Info.plist must contain an NSRemindersUsageDescription key

瘦欲@ 提交于 2021-02-20 00:48:25
问题 My Code: EKEventStore* eventStore = [[EKEventStore alloc] init]; [eventStore requestAccessToEntityType:EKEntityTypeReminder completion:^(BOOL granted, NSError * _Nullable error) { }]; The app's Info.plist already contain an NSRemindersUsageDescription key and NSCalendarsUsageDescription key, but the code below works fine on iOS 8 and 9, but on iOS 10 it crashes .like: [access] This app has crashed because it attempted to access privacy-sensitive data without a usage description. The app's

Problems accessing Calendar using EKEventStore on OSX Sierra with Swift 3

为君一笑 提交于 2021-02-07 05:20:42
问题 This appears very simple, but I've been struggling for several days to get access to the Calendar on OSX. I have switched on the App Sandbox capability, and I've ticked the "Calendar" box in App Data. I have created very simple app with the following view controller class: import Cocoa import EventKit class ViewController: NSViewController { var eventControl = EKEventStore() override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view. } override var

Problems accessing Calendar using EKEventStore on OSX Sierra with Swift 3

大兔子大兔子 提交于 2021-02-07 05:20:10
问题 This appears very simple, but I've been struggling for several days to get access to the Calendar on OSX. I have switched on the App Sandbox capability, and I've ticked the "Calendar" box in App Data. I have created very simple app with the following view controller class: import Cocoa import EventKit class ViewController: NSViewController { var eventControl = EKEventStore() override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view. } override var

Problems accessing Calendar using EKEventStore on OSX Sierra with Swift 3

泪湿孤枕 提交于 2021-02-07 05:20:06
问题 This appears very simple, but I've been struggling for several days to get access to the Calendar on OSX. I have switched on the App Sandbox capability, and I've ticked the "Calendar" box in App Data. I have created very simple app with the following view controller class: import Cocoa import EventKit class ViewController: NSViewController { var eventControl = EKEventStore() override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view. } override var

UIAlertView takes a long time to appear when called in a completion block

青春壹個敷衍的年華 提交于 2020-01-29 18:04:19
问题 Part of my app requires calendar access, which requires a call to the EKEventStore method -(void)requestAccessToEntityType:(EKEntityType)entityType completion:(EKEventStoreRequestAccessCompletionHandler)completion as of iOS 7. I added the request, and everything runs smoothly if the user selects to allow access, but a problem arises if the user denies or has previously denied access. I added a UIAlertView to notify the user if access is denied, but the UIAlertView consistently takes 20-30