为 UITouch 实例计时
我有一个带有用于点击或滑动的手势识别器的 UIView,但我希望能够对用户触摸时间进行计时,如果它大于某个时间值,我想触发另一种方法。
UITouch手势的时间是如何获取的?
谢谢
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
UITouch 的时间戳属性可能就是您想要的。
The timestamp property of UITouch is probably what you want.