`
zjjzmw1
  • 浏览: 1351940 次
  • 性别: Icon_minigender_1
  • 来自: 开封
社区版块
存档分类
最新评论

判断scrlloview是否是向下滑动的

    博客分类:
  • iOS
阅读更多

#pragma mark 判断页面是否是向下滑动的

-(void)scrollViewWillBeginDragging:(UIScrollView *)scrollView {

    CGPoint translation = [scrollView.panGestureRecognizer translationInView:scrollView.superview];

    if (translation.y>0) {

        [[NSNotificationCenterdefaultCenter]postNotificationName:@"downKeyWord"object:nil];

    }

 

}

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics