//确认按钮点击事件调用
if ([self anySubViewScrolling:self.myPicker]) return;
- (BOOL)anySubViewScrolling:(UIView *)view{
if ([view isKindOfClass:[UIScrollView class]]) {
UIScrollView *scrollView = (UIScrollView *)view;
if (scrollView.dragging || scrollView.decelerating) {
return YES;
}
}
for (UIView * theSubView in view.subviews) {
if ([self anySubViewScrolling:theSubView]) {
return YES;
}
}
return NO;
}
网友评论