3

我想检测 AppleWatch 上的触摸以获取触摸位置。因为我们可以通过使用以下委托方法在 iPhone 应用程序上实现此行为:

- (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event
{
    //Any Logic
}
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
    //Any Logic
}

所以,我只是在 WatchKit 上使用了这些方法,但没有用;有什么方法可以实现这种行为?

我想根据 WatchKit 上的触摸位置做一些逻辑。

任何工作方向将不胜感激。

4

1 回答 1

4

目前(我不知道未来是否会发生变化),没有像 WatchKit 这样的触摸识别器。您只需点击按钮或带有选择器的菜单即可响应。

于 2015-04-09T12:27:59.440 回答