user773578
user773578

Reputation: 1161

Timing a UITouch instance

I have a UIView with a gestureRecognizer for a tap or a slide, but I want to be able to time the users touch time and if it is larger than a certain time value I want to trigger another method.

How is the time of a UITouch gesture accessed?

Thanks

Upvotes: 0

Views: 468

Answers (1)

tassinari
tassinari

Reputation: 2363

The timestamp property of UITouch is probably what you want.

 [touch timestamp]

Upvotes: 2

Related Questions