OC版地址:http://blog.youkuaiyun.com/czxghostyueqiu/article/details/42494337
extension UIScrollView {
override public func touchesBegan(touches: Set<NSObject>, withEvent event: UIEvent) {
self.nextResponder()?.touchesBegan(touches, withEvent: event)
}
public override func touchesMoved(touches: Set<NSObject>, withEvent event: UIEvent) {
self.nextResponder()?.touchesMoved(touches, withEvent: event)
}
public override func touchesEnded(touches: Set<NSObject>, withEvent event: UIEvent) {
self.nextResponder()?.touchesEnded(touches, withEvent: event)
}
}