I created a customized gesture recognizer to deal with assortment of every contact occasions throughout a pan gesture, utilizing Goal-C.
I’m questioning if I have to name tremendous in touchesCancelled and reset()?
What would occur if I skip calling tremendous?
What is strictly performed in UIGestureRecognizer’s touchesCancelled and reset class?
From the pattern code in apple’s documentation, it reset native properties in each touchesCancelled and reset. Does runtime name reset after toucheCancelled?
override func touchesCancelled(_ touches: Set<UITouch>, with occasion: UIEvent) {
tremendous.touchesCancelled(touches, with: occasion)
self.initialTouchPoint = CGPoint.zero
self.strokePhase = .notStarted
self.trackedTouch = nil
self.state = .cancelled //Is that this mandatory?
}
override func reset() {
tremendous.reset() //Is that this necessary? Can I skip calling tremendous?
self.initialTouchPoint = CGPoint.zero
self.strokePhase = .notStarted
self.trackedTouch = nil
}