How to change UIWebView scroll background?

in the iPhone SDK Interface Builder, any UIWebView has a gray gray background by default, which is displayed when scrolling is too scrolled. Is it possible to change this background color so that it does not look so obvious? Gray conflicts with my App: (Any help would be greatly appreciated.

+5
source share
2 answers
webView.backgroundColor = yourcolor;

You can even do it in IB.

+6
source
   id scrollView = [[[self yourWebView] subviews] objectAtIndex:0];
   if([scrollView respondsToSelector:@selector(setBackgroundColor:)] )
   {
      [scrollView performSelector:@selector(setBackgroundColor:) 
                       withObject:[UIColor groupTableViewBackgroundColor]];
   }
+4
source

All Articles