Page 1 of 1

Browser control – UIWebView bounce background colour

Posted: Fri Jul 08, 2011 10:42 am
by ch1mjw
I have a UIWebView browser control working fine except that when scrolling to the top or bottom and it bounces, then a grey colour shows behind. Is there a way to change that colour to something else? Thanks

Re: Browser control – UIWebView bounce background colour

Posted: Fri Jul 08, 2011 1:45 pm
by Jellicle
Nope, not that I've ever seen.

Re: Browser control – UIWebView bounce background colour

Posted: Fri Jul 08, 2011 1:56 pm
by Klaus
I also think that this is supplied by the iOS and you cannot change this from within LiveCode.

Re: Browser control – UIWebView bounce background colour

Posted: Fri Jul 08, 2011 3:04 pm
by ch1mjw
Apologies, this is a rtfm issue.

iphoneControlSet sBrowserId, "backgroundColor", "255,255,255" sets the default grey shown on the bounce to white, for instance.

This is at the top of page 42 in the IOS release notes for 4.6.2 (revision 39):

"Set to either a standard color name, or a string of the form red,green,blue or red,green,blue,alpha. Where the components are integers in the range 0 to 255."

Re: Browser control – UIWebView bounce background colour

Posted: Fri Jul 08, 2011 3:16 pm
by Klaus
Ah, thanks for the head up!