在 iwatch 中发生点击手势事件时获取 CGPoint
Get CGPoint when tap gesture event happens in iwatch
如果可能,我想在我的 Apple Watch 应用程序中添加触摸点和手势。
我了解到 Apple Watch 不提供点按或滑动手势识别功能。
有什么方法可以支持点击手势事件,并在Apple Watch上判断CGPoint
?
watchOS 3 添加了对手势的第三方支持,包括点击和滑动。
您的手势识别器动作可以通过locationInObject()
方法监控连续触摸跟踪:
Returns the point computed as the current position of the touch event.
您可以在 WKGestureRecognizer
documentation, as well as the WatchKit Catalog sample code 中找到更多信息。
如果可能,我想在我的 Apple Watch 应用程序中添加触摸点和手势。
我了解到 Apple Watch 不提供点按或滑动手势识别功能。
有什么方法可以支持点击手势事件,并在Apple Watch上判断CGPoint
?
watchOS 3 添加了对手势的第三方支持,包括点击和滑动。
您的手势识别器动作可以通过locationInObject()
方法监控连续触摸跟踪:
Returns the point computed as the current position of the touch event.
您可以在 WKGestureRecognizer
documentation, as well as the WatchKit Catalog sample code 中找到更多信息。