iDevGames Forums
UIWEbView transparent background: is possible? - Printable Version

+- iDevGames Forums (http://www.idevgames.com/forums)
+-- Forum: Development Zone (/forum-3.html)
+--- Forum: Game Programming Fundamentals (/forum-7.html)
+--- Thread: UIWEbView transparent background: is possible? (/thread-9672.html)



UIWEbView transparent background: is possible? - sefiroths - Jan 3, 2012 09:48 AM

i have this html page:
Code:
<html>
<!-- ... -->or explicity set the background-color CSS property to transparent:

<head>
<style type="text/css">
html,
body {
background-color: transparent;
}
</style>

<!-- ... -->
</head>

and a uivewbview with:
Code:
[webv setBackgroundColor:[UIColor colorWithWhite:1 alpha:0.8]];
[webv loadRequest....];
the page is displayed, but the background is white.
if i scroll the page before the beginning end after the end of the page, i can see the transparency (where the page is ont displayed)
can i have a ful transparent html page so i can see the background of uiwebview?
thanks