相关疑难解决方法(0)

点击QLPreviewController ios 4.2中的菜单操作按钮,iPhone-应用程序崩溃

 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)

iphone

11
推荐指数
3
解决办法
1万
查看次数

iPhone - SDK中的"Open In"?

DropBox应用程序允许您通过选择该Open In选项在另一个应用程序中查看文档.

我们正在构建一个文档管理应用程序,并且需要能够在另一个应用程序中查看Dropbox的Word/Excel文档.

我在SDK中的哪个位置,以便我可以将文档传递给另一个应用程序以在该应用程序中打开?

伊恩

iphone open-with dropbox ios

7
推荐指数
1
解决办法
4294
查看次数

标签 统计

iphone ×2

dropbox ×1

ios ×1

open-with ×1