Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 11-11-2010, 01:28 PM   #8 (permalink)
yoz
Registered Member
 
Join Date: Jul 2010
Posts: 16
yoz is on a distinguished road
Default

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??

Last edited by yoz; 11-11-2010 at 02:04 PM.
yoz is offline   Reply With Quote
 

» Advertisements
» Online Users: 434
12 members and 422 guests
Code.ei, dansparrow, dinoclaud, erdinc27, EvilElf, ilmman, JavierEPease, n00b, poke, raymng, Speed, Warblr
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,590
Threads: 94,083
Posts: 402,777
Top Poster: BrianSlick (7,990)
Welcome to our newest member, JavierEPease
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:17 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.