Ios 哪个UIKit组件将用于生成这样的弹出窗口?
我认为有一个默认值,但我似乎无法在搜索中找到确切的措辞Ios 哪个UIKit组件将用于生成这样的弹出窗口?,ios,swift,uikit,Ios,Swift,Uikit,我认为有一个默认值,但我似乎无法在搜索中找到确切的措辞 它们是一种UIAlert,允许警报从底部出现,而不是像传统警报一样出现在视图的中心。是UIAlertControllerLink的操作表,可以轻松停止工作。请使用链接中的相关信息更新您的答案。 func showAlert() { let alert = UIAlertController( title: nil, message: "Choose a Radio F
它们是一种UIAlert,允许警报从底部出现,而不是像传统警报一样出现在视图的中心。是UIAlertControllerLink的操作表,可以轻松停止工作。请使用链接中的相关信息更新您的答案。
func showAlert() {
let alert = UIAlertController(
title: nil,
message: "Choose a Radio Frequency",
preferredStyle: UIAlertController.Style.actionSheet)
alert.addAction(UIAlertAction(title: "5 GHz",
style: UIAlertAction.Style.default,
handler: {(_: UIAlertAction!) in
}))
alert.addAction(UIAlertAction(title: "2.4 GHz",
style: UIAlertAction.Style.default,
handler: {(_: UIAlertAction!) in
}))
alert.addAction(UIAlertAction(title: "Annuller".localize(), style: UIAlertAction.Style.cancel, handler: { _ in
//Cancel Action
}))
self.present(alert, animated: true, completion: nil)
}
}