在iOS上使用UIDocumentInteractionController打开ICS文件>五

时间:2013-12-17 10:16:19

标签: ios cocoa-touch uiwebview calendar

我的目标是运行iOS≥5的iPhone和iPad,iOS 4.2 release notes意味着以下代码应该有效:

UIDocumentInteractionController *interactionController = [UIDocumentInteractionController interactionControllerWithURL:url];
interactionController.delegate = self;
BOOL worked = [interactionController presentOpenInMenuFromRect:buttonFrame inView:self.view animated:YES];

然而,它在iOS≥6上不起作用。这是一个有记录的回归吗?

我尝试通过Mail应用程序或通过Safari打开我在我的应用程序中使用的相同ICS文件,并且该文件在日历应用程序中按预期打开,并可选择添加它。

如何重现iOS的行为< 6或Mail和Safari(所有版本的iOS)?

0 个答案:

没有答案