tags:

views:

638

answers:

1

Is there a way to change the color of the gray underside of the UIWebView that's seen when the page is overscrolled?

+5  A: 

Just set the backgroundColor property.

atebits
Did you try this? webView.backgroundColor = [UIColor whitwColor]; does not work for me
Alan
You may need to post your code, because setting the background color as described here works fine (at least in 2.2.1).
ddoughty
It works. My wiring was incomplete.
Alan
Wow, this is odd. Setting the background color in the IB didn't seem to work, but doing it in code had the desired effect. Thanks!
Farid
Adding self.myWebView.backgroundColor = [UIColor whiteColor]; just replaced the dark grey gradient with a light white/grey gradient. Is there a way to set the overscrolled area to a flat solid color?
Bogatyr