如果要scrollView只保持向上的bounce
- (void)scrollViewDidScroll:(UIScrollView *)scrollView
{
CGFloat offsetY = scrollView.contentOffset.y;
if(offset Y < 0) {
scrollView.bounce = NO;
scrollView.ScrollEnabled = NO;
}
else {
scrollView.bounce = YES;
scrollView.scrollEnabled = YES;
}
}