[webkit-dev] WebView Background Color in WebKit Control

Darin Adler darin at apple.com
Mon Jul 28 13:25:15 PDT 2008


On Jul 19, 2008, at 7:13 AM, Bruce Cresanta wrote:

> I am writing an application using WebView that uses the [[WebView  
> mainFrame] loadRequest:<req>] method. The problem is that my  
> background is dark and the view flashes the color White upon adding  
> it as a subview of a view.

You might want to try calling the setDrawsBackground: method on the  
WebView.

     [webView setDrawsBackground:NO];

That will prevent the WebView from drawing a white background; when  
there is no content it will be transparent, showing the view behind it.

     -- Darin



More information about the webkit-dev mailing list