Thanks!
I'm building a universal app, and on the iPad, I don't have a navigation controller. Eventually, I'm going to use popovers on a series of
-(IBActions) I have as a custom menu at the bottom that will utilize a variation of this code. Awesome.
Now, I used this code in viewDidLoad to open in a web view, and the 4 page pdf pulled up blank pages and a black column on the right.
NSString *urlAddress = [[NSBundle mainBundle] pathForResource:@"filename" ofType:@"pdf"];
NSURL *url = [NSURL fileURLWithPath:urlAddress];
NSURLRequest *requestObj = [NSURLRequest requestWithURL:url];
[webView loadRequest:requestObj];
Can you add some autosizing to the code to fit and handle rotation?
As for the blank pages, the pdfs are high res, mostly image based, and I'm wondering if the way that Acrobat creates pdfs is the reason the pages are blank.
Any thoughts?
Here's the Apple forum link to the open source project on handling PDFs without webviews.
https://devforums.apple.com/thread/6...art=0&tstart=0
Could someone instruct us on how to use this code to in the same way; by opening a pdf with a simple -(IBAction) that uses this code to open the PDF??