iOS how to stop a scrolling scrollView

 

 

- (void)killScroll 
{
    CGPoint offset = scrollView.contentOffset;
    offset.y -= 1.0;
    [scrollView setContentOffset:offset animated:NO];
}

 

 

 

 

 

参考文章:http://stackoverflow.com/questions/3410777/how-can-i-programmatically-force-stop-scrolling-in-a-uiscrollview

 

posted @ 2016-08-22 01:03  Ficow  阅读(933)  评论(0编辑  收藏  举报