in the iPhone SDK Interface Builder, any UIWebView has a default gray background that is shown when the view has been scrolled too far. Is it possible to change this background color so it doesn't look so obvious? The gray conflicts with my App :( Any help would be greatly appreciated.
webView.backgroundColor = yourcolor;
You can even do it in IB.
id scrollView = [[[self yourWebView] subviews] objectAtIndex:0];
if([scrollView respondsToSelector:@selector(setBackgroundColor:)] )
{
[scrollView performSelector:@selector(setBackgroundColor:)
withObject:[UIColor groupTableViewBackgroundColor]];
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With