码迷,mamicode.com
首页 > 移动开发 > 详细

ios UIWebView隐藏右侧和底部的滚动条,去掉滚动边界的黑色背景

时间:2015-01-10 10:05:27      阅读:143      评论:0      收藏:0      [点我收藏+]

标签:

//取消右侧,下侧滚动条,去处上下滚动边界的黑色背景
        for (UIView *_aView in [myWebView subviews])
        {
            if ([_aView isKindOfClass:[UIScrollView class]])
            {
                [(UIScrollView *)_aView setShowsVerticalScrollIndicator:NO];
                //右侧的滚动条
                
                [(UIScrollView *)_aView setShowsHorizontalScrollIndicator:NO];
                //下侧的滚动条
                
                for (UIView *_inScrollview in _aView.subviews)
                {
                    if ([_inScrollview isKindOfClass:[UIImageView class]])
                    {
                        _inScrollview.hidden = YES;  //上下滚动出边界时的黑色的图片
                    }
                } 
            } 
        }  

禁用UIWebView左右滚动 (2011-09-01 14:5

[(UIScrollView *)[[m_webView subviews] objectAtIndex:0] setBounces:NO];

ios UIWebView隐藏右侧和底部的滚动条,去掉滚动边界的黑色背景

标签:

原文地址:http://blog.csdn.net/alincexiaohao/article/details/42580971

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!