Hi guys,
Is there any way to make the background of a UIWebView transparent (i.e. clearColor)? I have tried everything I can think of - setting the backgroundColor to clearColor, setting transparency in the CSS itself, when I load HTML from a String, it just doesn't work - the background always stays white.
Actually if I set some other color than white (such as blue) in the HTML/CSS, the view background is correctly set to that color.
Is this some kind of bug? Because in the API docs, there is nothing mentioned that the background cannot be transparent.
What I really want to do is display rich text on a View. This is not possible with UITextView because it doesn't allow any attributed strings to be used - the text is only of one predefined font/color... So the only way is supposed to be UIWebView.
Thanks very much for your feedback.
Is there any way to make the background of a UIWebView transparent (i.e. clearColor)? I have tried everything I can think of - setting the backgroundColor to clearColor, setting transparency in the CSS itself, when I load HTML from a String, it just doesn't work - the background always stays white.
Actually if I set some other color than white (such as blue) in the HTML/CSS, the view background is correctly set to that color.
Is this some kind of bug? Because in the API docs, there is nothing mentioned that the background cannot be transparent.
What I really want to do is display rich text on a View. This is not possible with UITextView because it doesn't allow any attributed strings to be used - the text is only of one predefined font/color... So the only way is supposed to be UIWebView.
Thanks very much for your feedback.