Does anyone know how I can set the background of my webView to the textured background that came with the iPad SDK programatically?
A:
Load some custom style into the web view that sets it to this on the body tag. Seems simple enough to me. Of course, as with everything, ensure whichever image you use, you have the rights to use.
jer
2010-07-20 07:36:31
I'm talking about the background outside of the actual content of the webview
Yazzmi
2010-07-20 07:42:26
+1
A:
Create a UIImageView
which has interaction disabled etc., and fills the whole space and has its autoresize masks set correctly. Then add your UIWebView
on top of it.
jrtc27
2010-07-20 07:52:12
+1
A:
Try this:
webview.backgroundColor = [UIColor scrollViewTexturedBackgroundColor];
Nick Forge
2010-07-20 08:17:43