0

openWithDefaultApplicationiPadでダウンロードしたファイル(アプリドキュメントディレクトリに保存)を試みています。をインストールしましPDFReaderLiteたが、openWithDefaultApplication拡張機能が認識されませんpdfPDFReaderLitePDFを開くためのデフォルトアプリにするにはどうすればよいですか?

前もって感謝します

4

2 に答える 2

1

http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/filesystem/File.html#openWithDefaultApplication%28%29これは、openWithDefaultApplication がデスクトップ機能であることを示唆しています。iOSにはデフォルトのアプリケーション機能さえ存在しないと思います...

于 2012-04-05T10:46:26.983 に答える
0
UIButton *button = (UIButton *)sender;
    NSURL *URL = [[NSBundle mainBundle] URLForResource:@"file_1" withExtension:@"pdf"];


    if (URL) {
        // Initialize Document Interaction Controller
        self.documentInteractionController = [UIDocumentInteractionController interactionControllerWithURL:URL];

        // Configure Document Interaction Controller
        [self.documentInteractionController setDelegate:self];

        // Present Open In Menu
        BOOL flag =[self.documentInteractionController presentOpenInMenuFromRect:[button frame] inView:self.view animated:YES];

        if (!flag) {

             //[appDel showAlert:@"There is no supported app installed in your phone"];
             [self.documentInteractionController presentPreviewAnimated:YES];
        }
于 2014-07-03T09:24:15.597 に答える