简体   繁体   English

如何从iOS 6.1中的应用程序打开本机日历应用程序?

[英]How to open native calendar app from our app in iOS 6.1?

I have tried to open the native iOS calendar app from within my app using the following code: 我尝试使用以下代码从我的应用程序中打开本机iOS 日历应用程序:

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"calshow://"]];

The above code works perfectly in iOS 7 and I am able to view my calendar app, 上面的代码在iOS 7可以完美运行,我可以查看我的日历应用,
but, the code does not work in an iOS 6.1 simulator . 但是,该代码在iOS 6.1 模拟器中不起作用。

I guess it is not supported in iOS 6.1 . 我猜它在iOS 6.1不受支持。 Please do provide any suggestions or workarounds for this. 请为此提供任何建议或解决方法。 Thanks ! 谢谢 !

PS: Yes, I'm aware of the features of the EventKit(UI) frameworks. PS:是的,我知道EventKit(UI)框架的功能。 But I'd like to specifically open the iCal app. 但我想专门打开iCal应用程序。
and
Yes I went through the stackoverflow answer . 是的,我经历了stackoverflow的答案

Simulator doesn't have a Calendar app. 模拟器没有日历应用程序。 You can only do it on actual device. 您只能在实际设备上进行操作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM