判断scrlloview是否是向下滑动的
程序员文章站
2024-01-27 11:11:46
...
#pragma mark 判断页面是否是向下滑动的
-(void)scrollViewWillBeginDragging:(UIScrollView *)scrollView {
CGPoint translation = [scrollView.panGestureRecognizer translationInView:scrollView.superview];
if (translation.y>0) {
[[NSNotificationCenterdefaultCenter]postNotificationName:@"downKeyWord"object:nil];
}
}
下一篇: 判断scrlloview是否是向下滑动的