Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 17th, 2012  |  syntax: None  |  size: 0.42 KB  |  hits: 17  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. How to create a transparent web view in iphone
  2. [self.itemSummary loadHTMLString:[item objectForKey:@"description"] baseURL:nil];
  3.  
  4. [self.itemSummary setClipsToBounds:YES];
  5.  
  6. self.itemSummary.opaque=NO;
  7.  
  8. self.itemSummary.backgroundColor=[UIColor clearColor];
  9.        
  10. [myWebView setBackgroundColor:[UIColor clearColor]];
  11. [myWebView setOpaque:NO];
  12.        
  13. <body style="background-color: transparent">
  14. body{background-color:transparent;}