Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - (void)webViewHideBackgroundAndScrollBar:(UIWebView*)theView {
- theView.opaque = NO;
- theView.backgroundColor = [UIColor clearColor];
- for(UIView *view in theView.subviews) {
- if ([view isKindOfClass:[UIImageView class]]) {
- // to transparent
- [view removeFromSuperview];
- }
- if ([view isKindOfClass:[UIScrollView class]]) {
- UIScrollView *sView = (UIScrollView *)view;
- //to hide Scroller bar
- sView.showsVerticalScrollIndicator = NO;
- sView.showsHorizontalScrollIndicator = NO;
- for (UIView* shadowView in [sView subviews]){
- //to remove shadow
- if ([shadowView isKindOfClass:[UIImageView class]]) {
- [shadowView setHidden:TRUE];
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement