当前位置: 动力学知识库 > 问答 > 编程问答 >

ios - SFSafariViewController does not import ics files, Mobile Safari does

问题描述:

I have a simple test ics file at https://www.generomobile.de/gmi/cal.ics, and in Mobile Safari I get immediately the import dialog to add the test event to my calendar.

Using SFSafariViewController with

 SFSafariViewController* sfvc=[[SFSafariViewController alloc] initWithURL:

[NSURL URLWithString:@https://www.generomobile.de/gmi/cal.ics"]];

leaves the page blank.

I have checked with .pdf URLs that the SFSafariViewController works, so can somebody enlighten me what is the secret with .ics files ?

I checked also with WKWebView ,nope , UIWebView was already discussed to be known not working for the .ics extension.

分享给朋友:
您可能感兴趣的文章:
随机阅读: