Guest User

Untitled

a guest
Jan 21st, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. // mobFoxView is a MobFoxBannerView loaded from a NIB
  2. // The following line will NOT result in a transparent background. It remains white!
  3. [mobFoxView setBackgroundColor:[UIColor clearColor]];
  4.  
  5. - (void) makeMobFoxViewTransparent:(MobFoxBannerView *)mobFoxView
  6. {
  7. [[mobFoxView subviews] enumerateObjectsUsingBlock:^(id obj, NSUInteger idx, BOOL *stop) {
  8. if ( [obj isKindOfClass:[UIWebView class]] )
  9. {
  10. UIWebView *theSubView = (UIWebView *) obj;
  11. theSubView.opaque = NO;
  12. [theSubView setBackgroundColor:[UIColor clearColor]];
  13. }
  14. }];
  15. }
Add Comment
Please, Sign In to add comment