ios tableviewcell footview 不跟着移动

来源:互联网 发布:vb求圆的面积和周长 编辑:程序博客网 时间:2024/06/03 19:48

#pragma  mark cell footView 不移动- (void)scrollViewDidScroll:(UIScrollView *)scrollView{    CGFloat sectionHeaderHeight = 5;//设置你footer高度    if (scrollView.contentOffset.y<=sectionHeaderHeight&&scrollView.contentOffset.y>=0) {        scrollView.contentInset = UIEdgeInsetsMake(-scrollView.contentOffset.y, 0, 0, 0);    } else if (scrollView.contentOffset.y>=sectionHeaderHeight) {        scrollView.contentInset = UIEdgeInsetsMake(-sectionHeaderHeight, 0, 0, 0);    }}

0 0
原创粉丝点击