1

I'm new to iOS development and instinctively turn towards handling touch events because my code is cross-platform and this maps more closely to other input devices like a mouse. But obviously for multi-touch, it is neater to just use built-in gesture functionality.

However can one do both - track a single touch directly as a kind of cursor, while also supporting pinch, rotate, etc?

4

1 回答 1

0

是的,它们可以同时发生,但它们可以(并且默认情况下)交互。手势具有诸如cancelsTouchesInView影响将哪些事件发送到视图的属性。另请参阅delaysTouchesBegan发送哪些影响以及何时发送。

于 2013-07-15T21:36:21.487 回答