简体   繁体   中英

ios VoiceOver focus not moving beyond navigation bar

VoiceOver focus not moving beyond navigation items. I am swiping right but focus trapped on the last element of navigation item. Probably it should move to the first element of the ViewController view. I have set accessibilityElements and made each element isAccessibilityElement = true. If I try to tap on any element of the ViewController view the focus trapped to status bar.

I have noticed that sometimes testing VO has some funky issues like this when testing while logging (you are running on your device through Xcode). If you run it by launching the icon, rather than running it in Xcode, it may work normally.

If not, you can force focus on the first item outside your navigation by posting a UIAccessibility notification in a method like viewWillAppear:

UIAccessibility.post(notification: UIAccessibility.Notification.screenChanged, argument: whateverelementyouwantfocused)

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