Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // mobFoxView is a MobFoxBannerView loaded from a NIB
- // The following line will NOT result in a transparent background. It remains white!
- [mobFoxView setBackgroundColor:[UIColor clearColor]];
- - (void) makeMobFoxViewTransparent:(MobFoxBannerView *)mobFoxView
- {
- [[mobFoxView subviews] enumerateObjectsUsingBlock:^(id obj, NSUInteger idx, BOOL *stop) {
- if ( [obj isKindOfClass:[UIWebView class]] )
- {
- UIWebView *theSubView = (UIWebView *) obj;
- theSubView.opaque = NO;
- [theSubView setBackgroundColor:[UIColor clearColor]];
- }
- }];
- }
Add Comment
Please, Sign In to add comment