开发者

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 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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜