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
|