我想在UIAlertViewController
水平放置3个按钮。但是当我尝试放置3个UIAlertAction
时,它会转换为UIActionSheet
。
这是我的代码: -
let alertv = UIAlertController.init(title: "Mesage", message: "Please Select one", preferredStyle: .alert)
let beenT = UIAlertAction.init(title: "Create", style: .default, handler: nil)
let viw = UIAlertAction.init(title: "View", style: .default, handler: nil)
let cancel = UIAlertAction.init(title: "Cancel", style: .cancel, handler: nil)
alertv.addAction(beenT)
alertv.addAction(viw)
alertv.addAction(cancel)
present(alertv, animated: true, completion: nil)
UIAlertView
我想要的