0
我已經在使用QLPreviewcontroller的iPad應用程序中工作了pdf文件閱讀器,但是我需要顯示任何人都可以幫助的彈出窗口中的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];