2015-12-27 32 views

回答

1

根據Apple指南,在watchOS中不可能實現自定義手勢,如我們在iOS中所述。因爲操作系統本身由watchOS管理手勢。

蘋果說什麼:

對蘋果關注的用戶交互生成的觸摸事件和手勢,但不像iOS應用,您的手錶應用不直接處理這些事件。該系統提供了所有的觸摸事件和手勢自動響應,通過以下方式響應:

• 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關注調用控件的相關操作方法。您可以爲界面中的控件定義操作方法,並使用它們來響應用戶交互。

More on stackoverflow

Apple guideline