Home > Development, Tips > Track the same UITouch Object

Track the same UITouch Object

You can track the same UITouch object by comparing each UITouch object’s hash.

NSUInteger touchHash = [touch hash]; // UITouch *touch

Categories: Development, Tips Tags: , ,
  1. Anderson
    August 5th, 2010 at 15:42 | #1

    Cool.
    But every time I have the [touch hash] I have different numbers on the same object.

    Is that correct?

  2. GTekna
    August 24th, 2010 at 22:02 | #2

    You will get a new hash value for every touchBegan.

  1. No trackbacks yet.