无法在 iPad 中实现 UISlider 辅助功能选项
我正在尝试在我的图书阅读器应用程序中实现辅助功能选项。我有一个滑块(类似于 ibooks),用于在页面之间导航。我已经看到另一个用户发布的这个问题,并在我的应用程序中实现了相同的代码。现在,当我点击滑块时,我的滑块正在响应。画外音还说出我在代码中给出的标签。但是,问题是,我无法更改滑块值并导航到另一个页面。我不知道这是我的代码的问题还是我不知道如何复制手势来更改值滑块...在这方面的任何帮助将不胜感激....谢谢
i am trying to implement accessibility option in my book reader app. I have a slider(similar to ibooks) which is used for navigating between pages. i have seen this question posted by another user and implemented the same code in my app. Right now my slider is responding when i'm tapping on it. The voiceover is also speaking the label i have given in the code. But, the problem is that, i am unable to change the slider value and navigate to another page.. I dont know if it is the problem with my code or is it that i do not know how to replicate the gesture to change the value of the slider... Any help in this regard will be appreciated.... Thanku
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
VoiceOver 关闭时滑块是否可以工作?
如果是这样,请在启用 VoiceOver 的情况下选择滑块元素后尝试垂直向上或向下滑动(显示屏从上到下)。
Does the slider work with VoiceOver turned off?
If so, try swiping vertically up or down (top to bottom of display) after selecting the slider element with VoiceOver enabled.
它是 UISlider 还是您自己设计的?一旦选择,UISlider 就需要一次实际的垂直滑动,因此会移动相当大的量——这对于进入下一页来说并不是一个好的体验。
如果它是您自己的自定义控件,请确保设置 UIAccessibilityTraitAdjustable。
Is it a UISlider, or something of your own devising? UISlider needs an actual vertical swipe once selected, and moves a pretty significant amount as a result — not a good experience for going to the next page.
If it's your own custom control, be sure you set UIAccessibilityTraitAdjustable.