-(UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event{
UIView*view = [superhitTest:pointwithEvent:event];
if([view isKindOfClass:[UISlider class]]){
//如果响应view是UISlider,则scrollview禁止滑动
self.delayCollectView.scrollEnabled = NO;
}else{//如果不是,则恢复滑动
self.delayCollectView.scrollEnabled = YES;
}
returnview;
}
网友评论