0

在库存的 Apple Watch 邮件应用程序中,您可以向左滑动以访问更多电子邮件选项。我将如何使用 a 来执行此操作WKInterfaceTable

4

1 回答 1

1

根据 Apple 指南,在 watchOS 中不可能像我们在iOS. 因为手势watchOS 由操作系统本身管理。

苹果怎么说:

Apple Watch 上的用户交互会生成触摸事件和手势,但与 iOS 应用不同的是,您的 Watch 应用不直接处理这些事件。系统为所有触摸事件和手势提供自动响应,响应方式如下:

•   Taps trigger action-based events in your app
•   Vertical swipes scroll the current screen
•   Horizontal swipes display the previous or next page in a page-based interface
•   Left edge swipes navigate back to a parent screen in a hierarchical interface

当用户点击一个按钮或另一个控件时,Apple Watch 会调用该控件的关联操作方法。您为界面中的控件定义操作方法并使用它们来响应用户交互。

更多关于stackoverflow

苹果指南

于 2015-12-30T12:34:33.820 回答