下拉tableView,Headview圖片左右擴充套件
阿新 • • 發佈:2018-12-23
// 1.
CGFloat img_Height = 150.0f;
_imgView=[[UIImageView alloc]initWithFrame:CGRectMake(0, 0,self.view.frame.size.width, img_Height)];
_imgView.image=[UIImage imageNamed:@"wumei"];
[_tableView addSubview:_imgView];
//
UIView *clearView = [[UIView alloc]initWithFrame :CGRectMake(0, 0,self.view.frame.size.width, img_Height)];
_tableView.tableHeaderView = clearView;
// 2. 修改座標
-(void)scrollViewDidScroll:(UIScrollView *)scrollView{
CGFloat offY = scrollView.contentOffset.y;
if (offY < 0) {
_
}
}