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

Mockup & CodeGen, iPhone & iPad
($9.99)

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

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 12-28-2009, 03:07 AM   #35 (permalink)
Msingh
Registered Member
 
Join Date: Dec 2009
Posts: 4
Question

Ok, so, I finally got that sorted out, but I think there's something wrong with this code

Code:
// Save data if appropriate
	// Create an instance of PDFViewController
	PDFViewController *controller = [[PDFViewController alloc] initWithNibName:@"PDFView" bundle:nil];
	// Get the path to our documents directory
	NSArray *documentPath = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
	// This should be our documents directory
	NSString *saveDirectory = [documentPath objectAtIndex:0];
	// Our PDF is named 'Example.pdf'
	NSString *saveFileName = @"Example.pdf";
	// Create the full path using our saveDirectory and saveFileName
	NSString *finalPath = [saveDirectory stringByAppendingPathComponent:saveFileName];
	// Set the pdfUrl to our finalPath
	controller.pdfUrl = [NSURL fileURLWithPath:finalPath];
	// Push 'controller'
	[self.navigationController pushViewController:controller animated:YES];
	// Release 'controller'
    [controller release];
the application gets an error, I think I'm putting it in the right spot, AppDelegate, under applicationDidFinishLaunching..... Please Help, I'm really stuck here, you could even just send a working project of this so I can figure out myself. PLEASE HELP ME!!
(email is akaldifauj@gmail.com)
Thanks in advance,
Msingh

Last edited by Msingh; 12-28-2009 at 10:28 PM. Reason: New problem
Msingh is offline   Reply With Quote
 

» Advertisements
» Online Users: 284
14 members and 270 guests
ADY, betterlee, BrianSlick, chits12345, JohnS., Joseph Nardone, leahov, marshusensei, OneHubCapMissing, Paul10, Phi, Promo Dispenser, RoryHarvey, ziocleto
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,877
Threads: 89,219
Posts: 380,705
Top Poster: BrianSlick (7,129)
Welcome to our newest member, peterkessler45
Powered by vBadvanced CMPS v3.1.0

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