I am following the instructions to initialize EKEventStore, but I get a code time error at the following line:
let eventStore = EKEventStore(accessToEntityTypes: .reminder)
The error message says:
'init(accessToEntityTypes:)' is unavailable
I am following the instructions to initialize EKEventStore, but I get a code time error at the following line:
let eventStore = EKEventStore(accessToEntityTypes: .reminder)
The error message says:
'init(accessToEntityTypes:)' is unavailable
The doc is sort of broken or not up-to-date.
In iOS, you use `init()`.
self.eventStore = EKEventStore()
You can find the line in a GitHub repo translated from Apple's old sample code.
github.com/ooper-shlab/SimpleEKDemo-Swift/blob/master/Classes/RootViewController.swif
The doc is sort of broken or not up-to-date.
In iOS, you use `init()`.
self.eventStore = EKEventStore()
You can find the line in a GitHub repo translated from Apple's old sample code.
github.com/ooper-shlab/SimpleEKDemo-Swift/blob/master/Classes/RootViewController.swif