UIDocumentInteractionController handles ics files

I was able to open the ics file stored locally and the UIDocumentInteractionController recognizes its UTI as com.apple.ical.ics

(which is expected). The data is displayed as I hoped, for the most part:

enter image description here

I had the impression of the docs that it UIDocumentInteractionController

will automatically recognize this type of ics file and provide some calendar related options, however it seems to me that I do not need to add these events to my calendar from this point of view. In the Open In menu, I see Mail and Dropbox as options, but not Calendar. If I email it, I can add events from the mail app. Am I missing something because of how this view works? Mobile Safari handles ics files in the same way, except that there is an Add All button in the title bar. This is exactly how I thought it would behave. I would rather not use EventKit at this point, as I would just like to emulate the way safari handles the file.

+3


source to share





All Articles