UIEvent timestamp

Posted by skajam66 on Stack Overflow See other posts from Stack Overflow or by skajam66
Published on 2011-01-01T09:51:15Z Indexed on 2011/01/01 9:53 UTC
Read the original article Hit count: 205

Filed under:
|
|

When handling a UIButton touch, you are given a UIEvent object. The UIEvent object has a timestamp which the Apple documentation states as being "the time that the event was created" (UIEvent Class Reference). In the documentation on the Main Event Loop, it states that: "The application object obtains the topmost object in the event queue, converts it to an event object (UIEvent) ..."

Does [UIEvent timestamp] refer to the time at which the UIEvent object is created (i.e. after processing the touch event off of the main run loop and hance not remotely real-time) or does it refer to the time that the underlying touch object was created (and hence as close as possible to representing the actual time of the user touch9?

© Stack Overflow or respective owner

Related posts about iphone

Related posts about events