xCode 7 beta2 + Swift 2.0 をインストールしたので、アプリでエラーが発生します。たとえば、次のエラーが表示されます
「タイプ '(EKEntityType、完了: (Bool、NSError!) -> _)' の引数リストで 'requestAccessToEntityType' を呼び出すことはできません」
コードのこの部分で:
eventStore.requestAccessToEntityType(EKEntityType.Event,
completion: {(granted: Bool, error:NSError!) in
if !granted {
print("Access to store not granted")
}
})
また、このエラー:
タイプ '(NSDate, endDate: NSDate, calendars: [AnyObject])' の引数リストで 'predicateForEventsWithStartDate' を呼び出すことはできません
コードのこの部分で:
calendarsPrueba.addObject(calendarWithName("US Holidays")!)
var predicate2 = eventStore.predicateForEventsWithStartDate(startDate, endDate: endDate, calendars: calendarsPrueba as [AnyObject])
誰かがこの問題を解決する方法を知っていますか? これに関するAppleのドキュメントはありません