tags:

views:

19

answers:

1

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,

Miraaj

A: 

Yes, try this:

[myWebView setOpaque:NO];
[myWebView setBackgroundColor:[UIColor clearColor]];
Toastor
thanx for your answer but can you suggest how can I do it in cocoa - Mac?
Miraaj
alternatively in WebView we can use setDrawsBackground:NO .... cheers!
Miraaj
oh... I had my head too deep in iphone stuff it seems! Sorry for mixing things up!
Toastor