开发者

Current Touch location

开发者 https://www.devze.com 2023-03-25 13:53 出处:网络
How does one get the current touch location from a GestureRecognizer? 开发者_JAVA百科I need to get the current touch location when the touch has begun as well as when the touch has ended.

How does one get the current touch location from a GestureRecognizer?

开发者_JAVA百科I need to get the current touch location when the touch has begun as well as when the touch has ended.

What property is used to get this location?

Thanks


In your gesture recognizer handler:

 CGPoint location = [gestureRecognizer locationInView:gestureRecognizer.view];

you could specify a different view, if you need it.

0

精彩评论

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

关注公众号