views:

68

answers:

3

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
I'm talking about the background outside of the actual content of the webview
Yazzmi
+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
+1  A: 

Try this:

webview.backgroundColor = [UIColor scrollViewTexturedBackgroundColor];
Nick Forge