I use a PDF reader called vfr to read local pdf files. I also tried to read online pdf files but it didn't work.
This the code:
- (IBAction)didClickOpenPDF {
NSString *pdfURL = @"www.ciep.fr/tcf/document/manuel_candidat.PDF";
ReaderDocument *document = [ReaderDocument withDocumentFilePath:pdfURL password:nil];
if (document != nil)
{
ReaderViewController *readerViewController = [[ReaderViewController alloc] initWithReaderDocument:document];
readerViewController.delegate = self;
readerViewController.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
readerViewController.modalPresentationStyle = UIModalPresentationFullScreen;
[self presentModalViewController:readerViewController animated:YES];
}
}