How-To: Make UIWebView transparent
Feb.13, 2009 in
Development, Tech, iPhone Development, iphone
Common problem, need to apply nice HTML formatting for a section of your page, but want the UIWebView not to appear as a big white box – only the content of the UIWebView to appear. How to do it?
myWebView.opaque = NO;
myWebView.backgroundColor = [UIColor clearColor];
[myWebView loadHTMLString:
@"<html><body style='background-color: transparent'>
Content Here</body></html>" baseURL:nil];
The above works in 2.2.
Tags: iPhone Development

March 12th, 2009 at 7:05 pm
How-To: Make UIWebView transparent…
You’ve been kicked (a good thing) – Trackback from iPhoneKicks.com – iPhone SDK links, community driven…
May 4th, 2009 at 3:48 pm
[...] there for everybody. And here’s one more: Common problem, need to apply nice HTML formatting for a section of your page, but want the [...]