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...
var eventStore : EKEventStore = EKEventStore() // 'EKEntityTypeReminder' or 'EKEntityTypeEvent' eventStore.requestAccessToEntityType(EKEntityTypeEvent, completion: { (granted, error) in if (granted) && (error == nil) { println("granted \(granted)") println("error \(error)") var event:EKEvent = EKEvent(eventStore: eventStore) event.title = "Test Title" event.startDate = NSDate() event.endDate = NSDate() event.notes = "This is a note" event.calendar =...
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.
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,ios8,uinavigationcontroller,ekevent
I never found out what the white bar really was, but I ended up presenting the EKEventViewController modally instead, which works very well: How to get a “Done” or “Back” button in an EKEventViewController when no having a navigation bar?