Menu
  • HOME
  • TAGS

Stuck with creating an event and formatting dates (Swift - EventKit - OS X)

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...

How to add an event in the device calendar using swift

swift,ekevent,ekeventstore

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 =...

EKEvent accept invitation

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.

Modifying EKParticipants (attendees) in EventKit like Sunrise

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...

Xamarin.IOS date format

c#,ios,datetime,xamarin,ekevent

use DateTime.ParseExact DateTime d = DateTime.ParseExact("20140713T190000Z","yyyyMMdd'T'HHmmss'Z'",null); also see this question...

White bottom bar appears after pushing EKEventViewController on Navigation Controller and returning

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?