Since I have installed the xCode 7 beta2 + Swift 2.0, I'm getting some errors in my app. For example, I'm getting the following error
"Cannot invoke 'requestAccessToEntityType' with an argument list of type '(EKEntityType, completion: (Bool, NSError!) -> _)'
in this part of code:
eventStore.requestAccessToEntityType(EKEntityType.Event,
completion: {(granted: Bool, error:NSError!) in
if !granted {
print("Access to store not granted")
}
})
Also this error:
Cannot invoke 'predicateForEventsWithStartDate' with an argument list of type '(NSDate, endDate: NSDate, calendars: [AnyObject])'
in this part of code:
calendarsPrueba.addObject(calendarWithName("US Holidays")!)
var predicate2 = eventStore.predicateForEventsWithStartDate(startDate, endDate: endDate, calendars: calendarsPrueba as [AnyObject])
Do somebody know how to fix this issues? There's no Apple documentation about this