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?
Asked
Active
Viewed 6,985 times
8
-
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
-
2put this code where you want open iOS calendar [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"calshow://"]]; – Mina Fawzy Oct 14 '14 at 11:20
2 Answers
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
-
1`calshow:t` where `t` is a number obtained with: `nsDate.timeIntervalSinceReferenceDate` – Gabriel Sep 17 '18 at 13:14