赞
踩
- (void)scrollViewDidEndScrollingAnimation:(UIScrollView *)scrollView{
[NSObject cancelPreviousPerformRequestsWithTarget:self];
//NSLog(@"滑动停止(animation)");
_isScrolling = NO ;
NSLog(@"滑动停止 = page%@",@(self.currentPage) );
}
- (void)scrollViewDidScroll:(UIScrollView *)scrollView{
[NSObject cancelPreviousPerformRequestsWithTarget:self];
[self performSelector:@selector(scrollViewDidEndScrollingAnimation:) withObject:nil afterDelay:0.3];
//NSLog(@"滑动中");
_isScrolling = YES ;
}
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。