如题,隐藏滚动条和上下滚动时出边界的后面的黑色的背景

   
   
   
   
  1. aWebView.backgroundColor=[UIColor clearColor]; 
  2.    for (UIView *_aView in [aWebView subviews])  
  3.    { 
  4.     if ([_aView isKindOfClass:[UIScrollView class]])  
  5.        { 
  6.            [(UIScrollView *)_aView setShowsVerticalScrollIndicator:NO]; //右侧的滚动条 
  7.             
  8.         for (UIView *_inScrollview in _aView.subviews)  
  9.            { 
  10.                 
  11.                if ([_inScrollview isKindOfClass:[UIImageView class]]) 
  12.                { 
  13.                    _inScrollview.hidden = YES;  //上下滚动出边界时的黑色的图片 
  14.                } 
  15.         } 
  16.     } 
  17. }