ibjazz
ibjazz

Reputation: 263

Using a Calendar in my iPhone Application to Publish Events

I am trying to build an application that shows a Calendar with events that are published by the owner of the application. That is, users that download the application will be able to see the dates of special events and add them to their own calendar.

Is there a way to do this, or is the only option to do an XML Parsing?

Thanks in advance.

Upvotes: 0

Views: 7212

Answers (3)

Steve Moser
Steve Moser

Reputation: 7807

API for UI calendar

In addition to Tapku bobbypage referenced here is also the KLCalendarView which attempts to look somewhat like Calendar.app (Search for it, I'm out of hyperlinks).

API for adding events to a user's calendar

Check out Apple's EventKit reference. It allows for adding static and recurring events. Here is a good video tutorial on how to use event kit.

XML or JSON parsing

Depends on the source of the calendar. Here is another SO question about paring ics files on the iPhone.

How to use NSScanner to parse .ics file

Upvotes: 2

Jonathan Grynspan
Jonathan Grynspan

Reputation: 43472

There is no UI provided by Apple for this task, but EventKit may help you with the logic for your app.

Upvotes: 0

bobbypage
bobbypage

Reputation: 2169

UIKit.framework has no API for a UI calendar.

There are open source projects for UI calendars like Tapku.

Tapku's TKCalendarMonthView mimics the Calender.app UI preloaded on iOS.

Using a combination of the Tapku library, XML or JSON parsing, and magic you could fetch special events from your webserver and add them to Tapku's TKCalendarMonthView to achieve your goal.

Thanks,

-David

Upvotes: 4

Related Questions