I'm learning the touch event mechanism of iOS.
From the documentation I understood that a UIEvent
object would be created when first touch down happened, it would live till the last touch up, and it would contain all the UITouch
objects created in the period.
But in my testing, I found that there is only one UIEvent
object created in a view in whole life of the application, and the number of UITouch
objects it contains depends on how many fingers touch.
If you touch with one finger, there would be only one UITouch
object created, and the UITouch
object would be updated in different phases.
I mean the representation in my testing is different from the description of the documentation: there is only one UIEvent
object when many different touches happen.
Why is that? Have I misunderstood something anywhere?