I can't figure out a good way to match UITouch objects in UIKit to their corresponding touch objects in JavaScript.
For UITouch, one typically uses the value returned by hash
message to identify the UITouch instance across touch phases. In HTML / JavaScript, touch.identifier
is used and is guaranteed to be an unique number across multiple touches.
However, the numbers returned by [aUITouch hash]
and aTouch.identifier
are not related. Any ideas on how I can match touch objects received in JavaScript notifications with the UITouch objects received in Obj-C?
Thanks.