如何响应 Apple Watch 的表冠滚动?
How to respond to crown scrolling for Apple Watch?
我的手表应用程序中有一个滑块控件,但我希望用户使用表冠滚动浏览更大的数字,而不是点击 increase/decrease 按钮一百次。这可能吗?
很遗憾,您无法响应表冠滚动。这是来自 https://devforums.apple.com/thread/254540?tstart=15
上的 Apple 布道者
From a Watch app's point of view, a wearer who's using the digital
crown is indistinguishable from a wearer who's scrolling the interface
with a finger. There are no scroll callbacks for either case.
Apple Watch Videos 显示表冠的工作原理。观看第一个视频 欢迎使用 Apple Watch,在 01:58 处解释了数字表冠。在 02:43 它显示了一个步进器。
看起来皇冠使步进速度可能比 +/- 1 步快得多。
我的手表应用程序中有一个滑块控件,但我希望用户使用表冠滚动浏览更大的数字,而不是点击 increase/decrease 按钮一百次。这可能吗?
很遗憾,您无法响应表冠滚动。这是来自 https://devforums.apple.com/thread/254540?tstart=15
上的 Apple 布道者From a Watch app's point of view, a wearer who's using the digital crown is indistinguishable from a wearer who's scrolling the interface with a finger. There are no scroll callbacks for either case.
Apple Watch Videos 显示表冠的工作原理。观看第一个视频 欢迎使用 Apple Watch,在 01:58 处解释了数字表冠。在 02:43 它显示了一个步进器。
看起来皇冠使步进速度可能比 +/- 1 步快得多。