2013-05-11 45 views

回答

0

使用EventKit框架

看一看這個演示:http://developer.apple.com/library/ios/#samplecode/SimpleEKDemo/Listings/Classes_RootViewController_h.html#//apple_ref/doc/uid/DTS40010160-Classes_RootViewController_h-DontLinkElementID_3

解決您的問題。

代碼:

self.eventStore = [[EKEventStore alloc] init]; 
self.eventsList = [[NSMutableArray alloc] initWithArray:0]; 
self.defaultCalendar = [self.eventStore defaultCalendarForNewEvents]; 
NSArray *calendarArray = [NSArray arrayWithObject:defaultCalendar]; 

希望這有助於啓動...

相關問題