0

i have worked pdf file reader in iPad apps using QLPreviewcontroller but i need to show the inside of pdf hyper link show on popover in iPad any one can help out.

 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];
4

1 に答える 1