Unable to implement UISlider for Accessibility opt

2019-08-04 08:47发布

问题:

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

回答1:

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.



回答2:

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.