我试图呼吁暂停VoiceOver技术:
UIAccessibility.post(notification: .pauseAssistiveTechnology, argument: UIAccessibility.AssistiveTechnologyIdentifier.notificationVoiceOver)
错误是:
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'You must pass the identifier of the assistive technology to pause. See UIAccessibilityConstants.h for the list of valid values.
有什么建议吗?我是否需要init
一个带有rawValue
的标识符?
谢谢你的帮助!
发布于 2020-02-12 08:49:39
我试图呼吁暂停VoiceOver技术。
您不能,即使pauseAssistiveTechnology
类型属性乍一看似乎适合用于此目的。
事实上,VoiceOver不能暂停,因为系统需要在需要时接管.这意味着在你强加的停顿期间,在这种情况下,停顿不再意味着什么。
这种暂停的一个很好的选择是切换控制特性,正如苹果文档的这一讨论中所解释的那样。
https://stackoverflow.com/questions/60182068
复制相似问题