停止scrollview的惯性滑动

2016-11-17  本文已影响566人  路这么长
- (void)scrollViewDidEndDragging:(UIScrollView*)scrollView willDecelerate:(BOOL)decelerate {
  if(decelerate) {
     dispatch_async(dispatch_get_main_queue(), ^{
     printf("STOP IT!!\n");
     [scrollViewsetContentOffset:scrollView.contentOffsetanimated:NO];**
            });
      }
}
上一篇下一篇

猜你喜欢

热点阅读