PDA

View Full Version : showing webview with transparent background




Monaj
Sep 1, 2010, 04:39 AM
Hi all,

I am displaying some graph from a link in webview.

My requirement is : I want to show graph with changed background color.

One way is to change the color in html/php code.

The other way I thought is to take the web view within NSBox and fill NSBox with required color, but it is not working as I require. It is showing graph with white background color in web view and NSBox with filled color around it.

Is there any way by which I can make background of WebView transparent so that it shows the color of box in which it is contained as background color of graph?

Thanks,

Monaj



kainjow
Sep 1, 2010, 10:12 AM
You could try [webView setDrawsBackground:NO];

jared_kipe
Sep 1, 2010, 01:58 PM
Curious, is it an image, and if so could you just download that image and display it in a UIImageView?

Monaj
Sep 2, 2010, 12:19 AM
Curious, is it an image, and if so could you just download that image and display it in a UIImageView?

No it is not an image. I want to do it on Mac not on iPhone!