openWithDefaultApplication
iPadでダウンロードしたファイル(アプリドキュメントディレクトリに保存)を試みています。をインストールしましPDFReaderLite
たが、openWithDefaultApplication
拡張機能が認識されませんpdf
。PDFReaderLite
PDFを開くためのデフォルトアプリにするにはどうすればよいですか?
前もって感謝します
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/filesystem/File.html#openWithDefaultApplication%28%29これは、openWithDefaultApplication がデスクトップ機能であることを示唆しています。iOSにはデフォルトのアプリケーション機能さえ存在しないと思います...
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];
}