iOS 4では、-touchesBegan:withEvent:、-touchesMoved:withEvent:、-touchesEnded:withEvent:、-touchesCancelled:withEvent:が、タッチを処理するビューに実装できる唯一のメソッドであると信じていました。
しかし今、私がこれらのメソッドを次のようにオーバーライドすると:
- (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event {
// not calling super. Doing nothing.
}
UIScrollViewサブクラスでは、引き続きスクロールします。彼らはどうやってそれをしましたか?