Question about cancelsTouchesInView and Pan Gesture


#1

I’m not really understanding the bit of code at the top of page 258.

The explanation at the bottom of page 259 explains that by default this property is YES which would prevent touchesBegan:withEvent: from having a chance to handle it. Since we’re setting this to NO, I’m wondering what’s preventing another line from being drawn every time I move a line using the UIPanGestureRecognizer.


#2

I think I figured this out on my own and it’s really simple, just in case anyone else got stuck on this…

The longPressGestureRecognizer is also running at the same time, and we did not change its cancelTouchesInView property to NO, so that’s what’s preventing touchesBegan:withEvent: from being called.