Search code examples
iphoneobjective-cxcodeicalendarlibical

Parse .ics data in an iPhone project


I am making an iPhone application, and I want to use libical to parse .ics dat from an .ics file or from the URL location of the .ics file.

Firstly, how would I go about using libical in my project? How can I add it into my iPhone project, etc.? I’ve seen some guides, but they seem to be specific to OSX projects and not iPhone projects..

Secondly, how can I parse event names and their descriptions, so that I can store the event names/ descriptions as variables?

Is this possible using libical? If so, roughly how may I go about implementing this?


Solution

  • .ics data files are relatively easily parsable. Open one in a text editor and take a look.

    I've implemented an ics parser before for exactly what you're trying to do. It took me a couple of hours, and trying to get all sorts of libraries to compile used taken me more in a few occasions :)