我正在尝试通过EKEventStore
在 iOS8 中使用 Swift 来获取事件列表,据我所知,文档尚未更新。
这就是我想要做的:
let eventStore = EKEventStore()
eventStore.requestAccessToEntityType(EKEntityType(), EKEventStoreRequestAccessCompletionHandler(Bool(), NSError(){}))
这是我得到的错误:
'EKEventStoreRequestAccessCompletionHandler' is not constructible with '(Bool, NSError)
你知道如何在 Swift 中正确使用方法或处理程序吗?