我使用 QLPreviewcontroller 在 iPad 应用程序中工作过 pdf 文件阅读器,但我需要在 iPad 的弹出窗口上显示 pdf 超链接显示的内部,任何人都可以提供帮助。
documentPath = [[NSBundle mainBundle] pathForResource:@"my_file" ofType:@"pdf"];
fileURL = [NSURL fileURLWithPath:documentPath];
//fileURL = [NSURL URLWithString:kStringURLUIDocumentInteractionControllerPDF];
}
//creating the object of the QLPreviewController
QLPreviewController *previewController = [[QLPreviewController alloc] init];
//settnig the datasource property to self
previewController.dataSource = self;
//pusing the QLPreviewController to the navigation stack
[[self navigationController] pushViewController:previewController animated:YES];
//remove the right bar print button
[previewController.navigationItem setRightBarButtonItem:nil];
[previewController release];