May 09 2011

UiWebView with transparent background

Category: megiordano scalzo @ 11:50 am

Just a little tip to improve an iPhone UX.
If you need to set a transparent background to a UIWebView, setting a clearColor as backgroundColor isn’t enough: you should set it as non opaque too:

    self.myWebView.backgroundColor = [UIColor clearColor];
    [self.myWebView setOpaque:NO];

Very easy when you know it!