How to control which UIAccessibilityElement receiv

2019-08-11 06:13发布

I have an overlay with accessible elements. When it disappears, I post UIAccessibilityScreenChangedNotification to cause VoiceOver update.

VoiceOver then picks first element of the screen. How can I make it focus on a specific element by default after posting UIAccessibilityScreenChangedNotification?

1条回答
不美不萌又怎样
2楼-- · 2019-08-11 06:25

When you post the notification you can supply additional information which is either an NSString object that VoiceOver speaks or an accessibility element that VoiceOver moves to.

UIAccessibilityPostNotification(UIAccessibilityScreenChangedNotification, focusItem);
查看更多
登录 后发表回答