只能向上滚动
- (void)scrollViewDidScroll:(UIScrollView *)scrollView{
CGPoint point = scrollView.contentOffset;
point.y = point.y < 0 ? 0 : point.y;
scrollView.contentOffset = point;
}
只能向上滚动
- (void)scrollViewDidScroll:(UIScrollView *)scrollView{
CGPoint point = scrollView.contentOffset;
point.y = point.y < 0 ? 0 : point.y;
scrollView.contentOffset = point;
}
本文标题:UIScrollView的单向滚动
本文链接:https://www.haomeiwen.com/subject/ihlvzttx.html
网友评论