Simon
Simon

Reputation: 41

How to create an ics-File?

I want to make a app which can create a new event and send it to other persons. So I thought it might be possible to create an ics-File of an EKEvent and send it away via email.

But I don't know how to create such a file from an EKEvent. How does it work?

Thanks.

Upvotes: 4

Views: 3262

Answers (3)

Aaron Bratcher
Aaron Bratcher

Reputation: 6471

Late answer:

The file format is defined here: http://www.ietf.org/rfc/rfc2445.txt Since this is the official definition, it is a long document.

Upvotes: 0

Carlos
Carlos

Reputation: 1133

I suppose I'm late, but... I found a category that converts an EKEvent to an .ics file. I haven't tested yet: https://github.com/mysterioustrousers/EKEventToiCal

Upvotes: 1

Nickolay Olshevsky
Nickolay Olshevsky

Reputation: 14160

There are no methods of EKEvent which allows you to save it to file. The only way I see is to create file on your own, it should have VCalendar format. Just save event to file from iCal and see what it has inside.

Upvotes: 1

Related Questions