[英]Voiceover not detecting when adding UIView to UIWindow's subview
我为我的整个应用程序使用了通用的UIPickerView
。 所以,我使用了UIWindow
代码:
@IBAction func show_Picker(_ sender: UIButton) { //ProfileViewController
let testController = UIStoryboard(name: "Main", bundle: nil).instantiateViewController(withIdentifier: "pick") as! PickerViewController
UIApplication.shared.keyWindow?.addSubview(testController.view)
}
Voiceover
未检测到此UIWindow
子视图。
显示了PickerViewController
,但Voiceover
在ProfileViewController
本身中循环。
我不知道如何在PickerViewController
中激活Voiceover
。
谁可以帮我这个事?
通过UIAccessibility.post(notification: .screenChanged, argument: newViewOrNil)
告诉 VoiceOver 一个构成屏幕主要部分的视图。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.