ios,avfoundation,uiimagepickercontroller,eventkit,photokit
So, this turned out to be a bug related to iOS 9b1. Permission detection works fine on iOS 8. I did learn that you need to check the permission on the main queue. If you do that, it will reflect updates. ...
ios,xcode,calendar,apple,eventkit
Easy, you can search if the event exists before you save it. If the event exists just doesn't add it. To find if event exists you can use something like: NSString *predicateString= [NSString stringWithFormat:@"title == '%@' AND location == '%@' AND notes == '%@'", event.title, event.location, event.notes ]; NSPredicate *matches...
EKCalendarEventAvailabilityMask conforms to the new OptionSetType protocol which inherits from SetAlgebraType and offers a set-like interface. You can check for membership with let availabilities = calendar.supportedEventAvailabilities if availabilities.contains(.Busy) { // 'Busy' is in there! } or if availabilities.isSupersetOf([.Busy, .Free]) { // Both .Busy and .Free are available ... } or...
ios,osx,swift,eventkit,ekevent
dateString doesn't match the format you specified. Why not use the built-in short style? This appears to work: let dateFormatter = NSDateFormatter() dateFormatter.dateStyle = .ShortStyle var dateString = "07/16/2015" var startDate = dateFormatter.dateFromString(dateString) var endDate = dateFormatter.dateFromString(dateString) startDate and endDate are optionals, so you'll have to unwrap them. In this...
ios,objective-c,calendar,eventkit
This problem was solved by doing the below. -(void)addEvent:(EventStoreClass *)storeObject { EKEventStore *store = [[EKEventStore alloc] init]; [store requestAccessToEntityType:EKEntityTypeEvent completion:^(BOOL granted, NSError *error) { if (!granted) return; EKEvent *event = [EKEvent eventWithEventStore:store]; [event setTitle:[storeObject eventTitle]]; [event setStartDate:[storeObject eventStartDate]]; [event setEndDate:[storeObject eventEndDate]]; if([storeObject calendar]) { NSArray *calendars = [store...
at first your event data should be accessible in you table delegate func readEvents(){ ... let events = eventStore.eventsMatchingPredicate(searchPredicate) as [EKEvent] ... } but events are NOT !!! you fetch your data just locally in you function readEvents eventhough you declare a store for events in your class, you never...
EKReminder has a priority property. reminder.priority = 1; It's there, but undocumented, since (it was added in iOS 7, but) the EKReminder Class Reference documentation hasn't been updated since iOS 6....
Your count variable is not being incremented because it is declared inside the loop and initialized to the value zero at the beginning of each iteration. For your code to work as expected you have to move var count = 0 outside the for loop.
ios,iphone,google-calendar,eventkit
Yes. Events which are added to an EventKit calendar living on a Google, Exchange or iCloud account, will automagically sync. No extra work necessary.
In order to create a new calendar, you should create it and store the id in NSUserDefaults so you can retrieve it next time. I use the following function to fetch the calendar if it exists and create it if it does not: func getCalendar() -> EKCalendar? { let defaults...
ios,objective-c,xcode,eventkit,reminders
To implement EventKit the tutorial of Ray Wenderlich might be a starting point http://www.raywenderlich.com/64513/cookbook-making-calendar-reminder
ios,core-data,calendar,control,eventkit
I haven't worked myself with this framework, but as far as I can see from code and the EventKit documentation, it has an own store so it doesn't require a further core-data handling. https://developer.apple.com/library/prerelease/ios/documentation/EventKit/Reference/EKEventStoreClassRef/index.html#//apple_ref/occ/instm/EKEventStore/saveCalendar:commit:error: so: read the documentation to understand ;)...
ios,notifications,uilocalnotification,eventkit
Only the user can switch the style between banner and alert styles. You have no control over this. You seem to be confusing alerts and alarms? There's no relation between the two. Hence this sentence makes no sense: "If my settings -> Push Notifications, is set to Banners, does it...
ios,objective-c,exchange-server,eventkit,ekevent
I figured it out! Essentially, one must go into the EKAttendee class, which inherits from EKParticipant. I did this by creating a generic instance of that class using the NSClassFromString() method. Once you have an attendee, you can set the properties using the setValue:ForKey: function. Lastly, compile your EKAttendee instances...
ios,calendar,eventkit,ekeventkit
There is no notion of an EventKit calendar whose events you can modify, but that can't be modified from the native calendar app (or from any 3rd party calendar mgmt app, for that matter). FYI calendars created with EKSourceTypeSubscribed are not read only, even if you could reliably find the...
Thank you @vikingosegundo. I ended up implementing a custom comparison method in my class following the advice contained in this answer here: http://stackoverflow.com/a/877881/810360 I also extended it to be more flexible by utilizing the excellent DateTools by Matthew York found on GitHub: https://github.com/MatthewYork/DateTools This was my final code: -(BOOL)isEqualToEvent:(HDEvent*)event {...
ios,objective-c,eventkit,ekevent
Turns out, after doing some more research, that all of these apps are just displaying the EKEventViewController. What I had mistaken as customization was actually view tints.