简体   繁体   English

UIAccessibility和Apple Pay旁白互动问题

[英]UIAccessibility and Apple Pay voice-over interaction issue

I am noticing some strange behavior with the interaction of the application, accessibility, and Apple Pay. 我注意到应用程序,可访问性和Apple Pay的交互存在一些奇怪的行为。 If a user does anything to dismiss the Apple Pay sheet while voice-over is active, the name of the application is re-read when voice-over regains focus of the app, causing unexpected results. 如果在画外音处于活动状态时用户采取任何措施来关闭Apple Pay表,当画外音重新获得应用程序的焦点时,将重新读取应用程序的名称,从而导致意外结果。

Example situation for further clarification: 需要进一步说明的示例情况:

  1. User attempts to perform transaction using Apple Pay while voice-over is enabled. 启用画外音功能时,用户尝试使用Apple Pay执行交易。
  2. Transaction fails. 交易失败。
  3. Apple Pay sheet is dismissed and an UIAlterView is shown with error message. Apple Pay表被关闭,并显示UIAlterView和错误消息。
  4. Voice-over focuses on presented UIAlertView. 画外音侧重于呈现的UIAlertView。
  5. Voice-over reads the first two words of the alertView message, then says the application name and stops, disregarding the remaining alertView message text. 画外音读取alertView消息的前两个单词,然后说出应用程序名称并停止,而忽略其余的alertView消息文本。

Does anyone know how to get the voice-over to continue reading the text? 有谁知道如何获得画外音以继续阅读文本?

You can restore focus to the alert by issuing a well-timed UIAccessibilityPostNotification() , passing UIAccessibilityScreenChangedNotification and the element to be focused. 您可以通过发布适时的UIAccessibilityPostNotification() ,传递UIAccessibilityScreenChangedNotification和要聚焦的元素来将焦点恢复到警报。

However, that's a hack to work around the details of how VoiceOver focuses on your app after returning from an out-of-process view controller. 但是,这是一种变通方法,可以解决从进程外视图控制器返回后VoiceOver如何关注您的应用程序的细节。 Please consider filing a bug report so that Apple can investigate a general solution. 请考虑提交错误报告,以便Apple可以调查常规解决方案。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 UIAccessibility -Voice over 不适用于 NSMutableAttributedString - UIAccessibility -Voice over not working for a NSMutableAttributedString iOS:带有复选框的UIAccessibility(语音结束)无法正常工作 - iOS: UIAccessibility (Voice Over) with checkbox is not working properly 关闭表格视图中单元格的画外音焦点,而不是其他单元格 - Turning off Voice-over focus for a cell in table view and not for others 有什么方法可以禁用 UITextField 中占位符文本的可访问性画外音吗? - Is there any way to disable accessibility voice-over of placeholder text in UITextField? 与语音直接交互? - Direct Interaction with Voice Over? 我可以声明应用程序范围的首字母缩写词替代画外音吗? - Can I declare app-wide acronym substitution for voice-over? 辅助功能:在Voice-over模式下设置slider.value时,不会发布UISlider的UIControlEventValueChanged - Accessibility: UISlider's UIControlEventValueChanged is not posted when slider.value is set in Voice-over mode Apple Pay / Stripe集成问题 - Issue with Apple Pay / Stripe integration 在将 UIAccessibility 焦点更改为其他元素之前再次阻止语音公告 - Prevent Voice over announcement again before changing UIAccessibility focus to other element 为什么 UIAccessibility.post(notification: .announcement, argument: "arg") 没有在画外音中宣布? - Why is UIAccessibility.post(notification: .announcement, argument: "arg") not announced in voice over?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM