以编程方式打开iphone日历应用程序

时间:2011-07-11 08:46:49

标签: iphone objective-c calendar

我想从我的应用程序中以编程方式打开iphone日历应用程序。根据这篇文章:How to open the iPhone calendar from within my app?这是不可能的(2010年5月22日!)。也许ios sdk 4或ios sdk 5支持这样的功能?

2 个答案:

答案 0 :(得分:5)

除了将UIDocumentInteractionController与.ical文件一起使用外,这是不可能的,但这是毫无意义的,因为您可以使用Event Kit实现相同的功能(添加事件)。

答案 1 :(得分:1)

使用此行打开ios日历:

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"calshow://"]];
相关问题