我想在我的应用程序中下载并打开.ics文件.
我发现了一些问题,这里有一些我正在使用的代码
// NSString *path = [[NSBundle mainBundle] pathForResource:@"http://www.nmsd.wednet.edu//site/handlers/icalfeed.ashx?MIID=607" ofType:@"ics"];
NSURL *url = [NSURL fileURLWithPath:@"http://www.nmsd.wednet.edu//site/handlers/icalfeed.ashx?MIID=607"];
UIDocumentInteractionController *dc = [UIDocumentInteractionController interactionControllerWithURL:url];
dc.delegate = self;
[dc presentPreviewAnimated:YES];
Run Code Online (Sandbox Code Playgroud)
什么都没发生.没有任何错误.寻找图书馆来实现这一目标会更容易吗?