开发者

Timing a UITouch instance

开发者 https://www.devze.com 2023-03-22 02:05 出处:网络
I have a UIView with a gestureRecognizer for a tap or a slide, but I want to be able to time the users to开发者_开发技巧uch time and if it is larger than a certain time value I want to trigger another

I have a UIView with a gestureRecognizer for a tap or a slide, but I want to be able to time the users to开发者_开发技巧uch 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


The timestamp property of UITouch is probably what you want.

 [touch timestamp]
0

精彩评论

暂无评论...
验证码 换一张
取 消