-(void)scrollViewDidEndDragging:(UIScrollView *)scrollView willDecelerate:(BOOL)decelerate
{
    if (scrollView.contentOffset.y < -80) {
        [UIView beginAnimations:nil context:nil];
        [UIView setAnimationDuration:0.3];
        [scrollView setContentInset:UIEdgeInsetsMake(80, 0, 0, 0)];
//        [scrollView setContentInset:UIEdgeInsetsMake(-80, 0, 0, 0)];
        [UIView commitAnimations];
    }
}

相关文章:

  • 2021-11-17
  • 2021-09-06
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-25
猜你喜欢
  • 2021-08-14
  • 2022-12-23
  • 2021-07-01
  • 2021-12-29
  • 2022-12-23
  • 2022-12-23
  • 2022-01-27
相关资源
相似解决方案