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 01-26-2009, 05:23 PM   #4 (permalink)
shan
Registered Member
 
Join Date: Oct 2008
Posts: 96
shan is on a distinguished road
Default

To create the web view:
Code:
	UIWebView *tempWebView = [[UIWebView alloc] initWithFrame:CGRectMake(0.0, 0.0, self.view.bounds.size.width, self.view.bounds.size.height)];  
	tempWebView.backgroundColor = [UIColor whiteColor];  
	tempWebView.scalesPageToFit = YES;
	tempWebView.autoresizingMask = (UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight);
	tempWebView.delegate = self;
	[self.view addSubview:tempWebView]; 
	[self setWebView:tempWebView];
	[tempWebView release];

To load the PDF:
Code:
		[webView loadRequest:[NSURLRequest requestWithURL:[NSURL fileURLWithPath:PDFFilePath isDirectory:NO]]];
shan is offline   Reply With Quote
 

» Advertisements
» Online Users: 455
15 members and 440 guests
brainspoon, ChrisYates, CMSLdesign, dre, elhanche, Gaz, gogoman, iOS.Lover, ketaskin, Kieren Harrold, LegionMD, MysticLine, Robiwan, Sami Gh, thestojkovic
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,614
Threads: 94,086
Posts: 402,792
Top Poster: BrianSlick (7,990)
Welcome to our newest member, kurtroom
Powered by vBadvanced CMPS v3.1.0

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