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-29-2009, 12:24 AM   #1 (permalink)
tharindufit
Registered Member
 
Join Date: Dec 2008
Location: Colombo, Sri Lanka
Posts: 58
tharindufit is on a distinguished road
Send a message via Yahoo to tharindufit Send a message via Skype™ to tharindufit
Default How UIWebView supports scaling

I have a UIWebView in my application and I load a html string to that page and display, but it does not scale properly as when I load a web page from URL, How to enable scaling of my local html page.does it require to be a complex large html page. I have set the setScalesPageToFit to YES.
Code:
NSString *htmlText = "<html><script type="text/javascript" src=""></script><head><title>Tharindu</title>...............</html>";
[webView loadHTMLWithString: htmlText baseURL:nil];
[webView setScalesPageToFit:YES];
tharindufit is offline   Reply With Quote
 

» Advertisements
» Online Users: 442
14 members and 428 guests
brainspoon, ChrisYates, CMSLdesign, dre, elhanche, Gaz, gogoman, iOS.Lover, ketaskin, 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:38 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.