func _keyWindow() -> UIWindow? {
if #available(iOS 13.0, *) {
return UIApplication.shared.windows[0]
} else {
return UIApplication.shared.keyWindow
}
}
func _keyWindow() -> UIWindow? {
if #available(iOS 13.0, *) {
return UIApplication.shared.windows[0]
} else {
return UIApplication.shared.keyWindow
}
}
本文标题:iOS13 获取keyWindow
本文链接:https://www.haomeiwen.com/subject/zukfoctx.html
网友评论