我试图呼吁暂停 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.
我看到notificationVoiceOver是一个 identifier。
有什么建议么?我需要init
一个带有 的标识符rawValue
吗?
谢谢你的帮助!