ios - 如何在运行 VoiceOver 时实现像 Podcast 应用程序这样的可拖动洗涤器?

标签 ios voiceover uiaccessibility

当 VoiceOver 运行时,Apple 的 Podcast 应用程序有一个有趣的功能。

当用户双击并按住 slider 时,向左或向右拖动可调整 slider 位置。

这是怎么做到的?我已尝试通过 UIAccessibilityTraitAllowsDirectInteraction 允许与 slider 直接交互,但如果您的手指超出 slider 的范围,您将无法拖动和拖动到某个位置。

最佳答案

我找到了不将其设置为 UIAccessibilityTraitAllowsDirectInteraction 的解决方案,而是将其设置为 UIAccessibilityTraitAdjustable。这也允许无障碍用户上下滑动以调整进度条。

关于ios - 如何在运行 VoiceOver 时实现像 Podcast 应用程序这样的可拖动洗涤器?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23899339/

相关文章:

ios - 通过 FCM 消息控制台在后台向我的 iOS 应用程序发送静默通知

html - 在跨度上使用 aria-label

ios - UITableViewCell 中的自定义 VoiceOver 操作

ios5 - 在辅助功能模式下未检测到手势

ios - 不使用盲文屏幕输入调用 textField.shouldChangeCharactersIn

ios - 有没有办法检查 "increase contrast"是否在 iOS 的辅助功能设置中启用?

ios - 有没有办法在 iOS 应用程序的 VoiceOver 中更改默认辅助功能操作的文本?

iOS-UITextField : extend the bottom line for ANY resolution

objective-c - 通过用户交互使用 nib 加载 UIView

ios - Xamarin IOS 更改选项卡项的 View Controller