标签:style class blog code color set
很常用的一个功能,就记录下来了。
-(void)scrollViewWillBeginDragging:(UIScrollView *)scrollView { historyY = scrollView.contentOffset.y; } -(void)scrollViewDidScroll:(UIScrollView *)scrollView { if (scrollView.contentOffset.y<historyY) { NSLog(@"down"); } else if (scrollView.contentOffset.y>historyY) { NSLog(@"up"); } }
判断UISrollview的滑动方向,布布扣,bubuko.com
标签:style class blog code color set
原文地址:http://www.cnblogs.com/iOS-dd/p/3799905.html