8

I'd like to open the iphone calendar app programmatically from within my app. According to this post: How to open the iPhone calendar from within my app? it isn't possible (May 22 2010!). Maybe the ios sdk 4 or ios sdk 5 support such a feature?

Community
  • 1
  • 1
Michael S
  • 731
  • 2
  • 10
  • 26
  • you can look @ this link, hope this will help you http://www.cocoacontrols.com/platforms/ios/controls/pmcalendar – Sunil Targe Dec 07 '12 at 12:40
  • 2
    put this code where you want open iOS calendar [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"calshow://"]]; – Mina Fawzy Oct 14 '14 at 11:20

2 Answers2

4

It's not possible, except for using UIDocumentInteractionController with an .ical file, but that's pretty pointless as you could achieve the same (adding an event) by using Event Kit.

omz
  • 53,243
  • 5
  • 129
  • 141
  • I guess you're right... I also found the Apple URL Scheme Reference which did not mentioned the calendar. – Michael S Jul 11 '11 at 11:43
3

use this line to open ios calendar :

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"calshow://"]];
Saeed-rz
  • 1,435
  • 1
  • 20
  • 38