我试图找到一种方法来自动化Allow VoiceOver to be controlled with AppleScript选项在VoiceOver Utility.app上的检查,以便VoiceOver据我所知,这是否启用是由/private/var/db/Accessibility/.VoiceOverAppleScriptEnabled文件的存在(包含单个字符的a (通过深入挖掘VoiceOverUtility /ScreenReaderCore.frame
setAccessibilityLabel:@"This is my button"];如果VoiceOverUIAccessibilityPostNotification(UIAccessibilityLayoutChangedNotification, myButton);然而,按钮的可访问性标签由VoiceOver