OC版地址:http://www.jb51.cc/article/p-eojmeebq-em.html
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)
}
}