When I try to click the menu action button in QLPreviewController the application crashes.
Run Code Online (Sandbox Code Playgroud)
这就是我在委托方法中所做的
- (id)previewController:(QLPreviewController *)previewController previewItemAtIndex:(NSInteger)index
{
NSMutableString*Url = [[NSMutableString alloc] initWithFormat:@"http://10.30.24.21/Documents/abc.doc];
NSURL *fileURL;
fileURL = [NSURL URLWithString:Url];// the url of the file which is present in NAS device
[Url release];
return fileURL;
}
Run Code Online (Sandbox Code Playgroud)
这是崩溃报告
2011-01-11 12:21:36.717 iLink[5548:207] *** Assertion failure in -[UIDocumentInteractionController setURL:], /SourceCache/UIKit_Sim/UIKit-1447.6.4/UIDocumentInteractionController.m:1060
2011-01-11 12:21:36.720 iLink[5548:207] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'UIDocumentInteractionController: invalid scheme https. Only the file scheme is supported.' …Run Code Online (Sandbox Code Playgroud) DropBox应用程序允许您通过选择该Open In选项在另一个应用程序中查看文档.
我们正在构建一个文档管理应用程序,并且需要能够在另一个应用程序中查看Dropbox的Word/Excel文档.
我在SDK中的哪个位置,以便我可以将文档传递给另一个应用程序以在该应用程序中打开?
伊恩