简体   繁体   中英

UIAccessibility and Apple Pay voice-over interaction issue

I am noticing some strange behavior with the interaction of the application, accessibility, and 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.

Example situation for further clarification:

  1. User attempts to perform transaction using Apple Pay while voice-over is enabled.
  2. Transaction fails.
  3. Apple Pay sheet is dismissed and an UIAlterView is shown with error message.
  4. Voice-over focuses on presented 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.

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.

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. Please consider filing a bug report so that Apple can investigate a general solution.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM