Set the bounces property of the tableView to YES. The bounces property of the tableView can be bounces up and down.

-(void)scrollViewDidScroll:(UIScrollView *)scrollView { NSLog(@"%f",_tableView.contentOffset.y); if (_tableView.contentOffset.y <= 100) { _tableView.bounces = NO; } else { _tableView.bounces = YES; }}Copy the code

TableView also supports scrollView delegate methods, so UIScrollViewDelegate is not written.