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 08-18-2010, 04:51 PM   #71 (permalink)
starbucky
Registered Member
 
Join Date: Jul 2010
Location: Vleuten, Utrecht, The Netherlands
Posts: 1
starbucky is on a distinguished road
Default

Wow! Thanks for the code and tutorial this great example of how great community support can be! Works like a charm.

There is a bit of a declaration mixup though. Change pdfURL to pdfUrl to make it integrate with the code from the first example

For people who want to know where to place the resource code; replace the viewDidLoad in your [yourname]viewController.m file with this:

PHP Code:
 - (void)viewDidLoad {
    [
super viewDidLoad];

    
pdfUrl = [NSURL fileURLWithPath:[[NSBundle mainBundlepathForResource:@"[yourpdffilenamehere" ofType:@"pdf"]];
    [
webView loadRequest:[NSURLRequest requestWithURL:pdfUrl]];

As said, I changed pdfURL to pdfUrl in the example code supplied to integrate it with the tutorial by danielb21

Last edited by starbucky; 08-18-2010 at 04:54 PM.
starbucky is offline   Reply With Quote
 

» Advertisements
» Online Users: 385
9 members and 376 guests
firecall, heshiming, iGamesDev, ipodphone, larhondaxzcw, linkmx, Matl43Owa, TunaNugget
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,576
Threads: 94,082
Posts: 402,756
Top Poster: BrianSlick (7,990)
Welcome to our newest member, larhondaxzcw
Powered by vBadvanced CMPS v3.1.0

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