4

I want to be able to implement a button in my app, that quits my app, and takes the user to the iPhone's calendar. I'm not interested in sending the user to a specific event. Just opening up the calendar would do the trick. Any suggestions?

Sjakelien
  • 171
  • 3
  • 7

3 Answers3

12

Hey might be a late answer but you can do it now like this

 [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"calshow://"]];
9to5ios
  • 5,319
  • 2
  • 37
  • 65
  • 1
    Great little tip, not sure I'll use it, but it's little things like this that make SO so good - Thanks @iphonemaclover! – jjnevis Mar 18 '15 at 23:40
2

According to the comments on this blog post, there is currently no way to launch the calendar app.

cem
  • 3,311
  • 1
  • 18
  • 23
  • Bummer. I have seen that blog, but hoped that there would be someone around here who knew better. I leave this question unanswered for now, hoping for more input – Sjakelien May 23 '10 at 11:38
1

Take a look to the Event Kit. It allows working with calendar http://developer.apple.com/iphone/library/documentation/DataManagement/Conceptual/EventKitProgGuide/Introduction/Introduction.html

Noya
  • 3,879
  • 3
  • 26
  • 32
  • Yeah, Event Kit is great, but: it only works on iOS4 , and there are still some limitations. You can't (yet) create a new calendar for example. But it looks promising. – Sjakelien Aug 02 '10 at 12:00