相关疑难解决方法(0)

如何改变UIAlertController的高度?

我创建了一个UIAlertController

let alertC = UIAlertController(title: "Title", message: "Message", preferredStyle: UIAlertControllerStyle.Alert)
alertC.addTextFieldWithConfigurationHandler(addTextField)
alertC.addAction(UIAlertAction(title: "Cancel", style: UIAlertActionStyle.Default, handler: nil))
alertC.addAction(UIAlertAction(title: "OK", style: UIAlertActionStyle.Default, handler: okButton))
presentViewController(alertC, animated: true, completion: nil)
Run Code Online (Sandbox Code Playgroud)

但之后我想改变UIAlertController的高度?我怎样才能做到这一点?

height swift uialertcontroller

16
推荐指数
2
解决办法
2万
查看次数

标签 统计

height ×1

swift ×1

uialertcontroller ×1