I am working on making our app more accessible, and am running into an issue with VoiceOver.
我正在努力使我们的应用程序更容易访问,并且遇到了语音画外音的问题。
I have a view controller that has a table view and a horizontal scroll view that animates every 5 seconds to show something else. (Like what the Apple App Store app does on it's Featured Page where views slide in every few seconds)
我有一个视图控制器,它有一个表格视图和一个水平滚动视图,每5秒就会显示一些其他的东西。(就像苹果应用商店应用程序在它的特色页面上所做的那样,每隔几秒钟就会出现一次浏览)
The problem is that if I have selected a table view cell and VoiceOver is reading it out, the moment it animates to the next view, the VoiceOver cursor resets to the top of the nav bar.
问题是,如果我选择了一个表格视图单元格,并且VoiceOver读取它,当它对下一个视图进行动画处理时,VoiceOver光标就会重置到nav栏的顶部。
Looking at the Apple App Store, there is a way to avoid this. I would like it to not reset its position when another view shows.
看看苹果应用商店,有一种方法可以避免这种情况。我希望它不会在另一个视图显示时重置它的位置。
Any suggestions here would be much appreciated!
如有任何建议,我们将不胜感激!
1 个解决方案
#1
2
Perhaps you could use UIAccessibilityPostNotification and pass the parameter of the element you want selected:
也许您可以使用UIAccessibilityPostNotification并传递您想要选择的元素的参数:
UIAccessibilityPostNotification(UIAccessibilityLayoutChangedNotification,viewToSelect);
#1
2
Perhaps you could use UIAccessibilityPostNotification and pass the parameter of the element you want selected:
也许您可以使用UIAccessibilityPostNotification并传递您想要选择的元素的参数:
UIAccessibilityPostNotification(UIAccessibilityLayoutChangedNotification,viewToSelect);