showing webview with transparent background

Discussion in 'Mac Programming' started by Monaj, Sep 1, 2010.

  1. Monaj
    Expand Collapse
    macrumors regular

    Joined:
    May 24, 2009
    #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,

    Monaj
     
  2. kainjow
    Expand Collapse
    Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000
    #2
    You could try
    Code:
    [webView setDrawsBackground:NO];
     
  3. jared_kipe
    Expand Collapse
    macrumors 68030

    jared_kipe

    Joined:
    Dec 8, 2003
    Location:
    Seattle
    #3
    Curious, is it an image, and if so could you just download that image and display it in a UIImageView?
     
  4. Monaj
    Expand Collapse
    thread starter macrumors regular

    Joined:
    May 24, 2009
    #4
    No it is not an image. I want to do it on Mac not on iPhone!
     

Share This Page