我希望能够在AppleWatch上检测触摸事件并获取触摸位置。就像我们可以通过使用以下委托方法在iPhone应用程序中实现此行为:
- (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event
{
//Any Logic
}
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
//Any Logic
}
我刚在WatchKit上使用了这些方法,但没有起作用;
有没有办法实现这种行为?
我想根据WatchKit上的触摸位置进行一些逻辑处理。
任何工作方向都将受到赞赏。