Swift 버 전 ScrollView 와 UITouch 이벤트 충돌

1158 단어 iOSswift
OC 버 전 주소:http://blog.csdn.net/czxghostyueqiu/article/details/42494337
extension UIScrollView {
    override public func  touchesBegan(touches: Set, withEvent event: UIEvent) {
        self.nextResponder()?.touchesBegan(touches, withEvent: event)
    }
    public override func touchesMoved(touches: Set, withEvent event: UIEvent) {
        self.nextResponder()?.touchesMoved(touches, withEvent: event)
    }
    public override func touchesEnded(touches: Set, withEvent event: UIEvent) {
        self.nextResponder()?.touchesEnded(touches, withEvent: event)

    }
}

좋은 웹페이지 즐겨찾기