解决方法如下:
p.p1 { margin: 0.0px 0.0px 0.0px 0.0px; font: 13.5px Menlo; color: #000000 }
p.p2 { margin: 0.0px 0.0px 0.0px 0.0px; font: 13.5px Menlo; color: #4f8187 }
span.s1 { color: #ba2da2 }
span.s2 { }
span.s3 { color: #703daa }
span.s4 { color: #272ad8 }
span.s5 { color: #4f8187 }
span.s6 { color: #3e1e81 }
span.s7 { color: #000000 }
if (scrollView.contentOffset.y >= 0 && scrollView.contentOffset.y <= pushNewsTableViewHeaderViewHeight) {
scrollView.contentInset = UIEdgeInsetsMake(-scrollView.contentOffset.y, 0, 0, 0);
}else if (scrollView.contentOffset.y >= pushNewsTableViewHeaderViewHeight){
scrollView.contentInset = UIEdgeInsetsMake(-pushNewsTableViewHeaderViewHeight, 0, 0, 0);
}
在这里pushNewsTableViewHeaderViewHeight为headerView的高度
时间: 2024-10-31 05:22:18