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 10-09-2008, 06:02 AM   #1 (permalink)
schipmolder
Registered Member
iPhone Dev SDK Supporter
 
Join Date: Jul 2008
Posts: 19
Default UIWebView render speeds and white background

Hi guys,

I'm having a bit of a problem using UIWebView's to present formatted text in my app.

At first I wanted to use an UITextView to do this, but from the class ref I understand this won't work as my text will need multiple styles:

"This class does not support multiple styles for text. The font, color, and text alignment attributes you specify always apply to the entire contents of the text view. To display more complex styling in your application, you need to use a UIWebView object and render your content using HTML."

Now I've changed it to a webview and am loading a string with HTML code into the view, but I understand the webView can't have a transparent background...
So then I added a background in the HTML code (CSS style for body) that matches the containing view's background so it would appear transparent.

This is where I noticed the UIWebView taking quite some time (~0.5 sec) to render the HTML, even when it's very simple code. This in itself is not too bad, but while it's rendering the webView appears white!

Does anyone know what I can do to either not how the view until it's done rendering, or to make the background transparent?
I don't think the webview has a method it calls when finished rendering, right?

Thanks
Skip
schipmolder is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 158,722
Threads: 89,183
Posts: 380,500
Top Poster: BrianSlick (7,125)
Welcome to our newest member, idny99
Powered by vBadvanced CMPS v3.1.0

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