无法在iPad中实现UISlider for Accessibility选项 [英] Unable to implement UISlider for Accessibility option in iPad

查看:146
本文介绍了无法在iPad中实现UISlider for Accessibility选项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在我的图书阅读器应用程序中实现辅助功能选项。我有一个滑块(类似于ibooks),用于在页面之间导航。我见过其他用户发布的这个问题,并在我的应用中实现了相同的代码。现在,当我点击它时,我的滑块正在响应。画外音也是我在代码中给出的标签。但是,问题是,我无法更改滑块值并导航到另一个页面..我不知道这是我的代码的问题还是我不​​知道如何复制手势来更改值滑块...在这方面的任何帮助将不胜感激.... Thanku

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

推荐答案

是UISlider,还是你自己设计的东西? UISlider一旦选择就需要进行实际的垂直滑动,因此移动相当大的数量 - 这不是进入下一页的良好体验。

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.

如果这是你自己的定制控制,一定要设置UIAccessibilityTraitAdjustable。

If it's your own custom control, be sure you set UIAccessibilityTraitAdjustable.

这篇关于无法在iPad中实现UISlider for Accessibility选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆