class BaseScrollView: UIScrollView {
override func hitTest(_ point: CGPoint, with event: UIEvent?) -> UIView? {
//意思是,触摸X点小于10, 我scrollView不要这个手势,
if point.x < 10 {
return nil
}//让它把这个手势给别人。
return super.hitTest(point, with: event)
}
}
网友评论