【发布时间】:2014-09-21 02:01:23
【问题描述】:
我创建了一个 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)
但是在那之后我想改变 UIAlertController 的高度?我该怎么做?
【问题讨论】:
-
@JoJoe 那是
UIAlertView,这是新的iOS 8UIAlertController。 -
@JoJoe 请删除重复的标志......因为它没有重复你不知道我问了什么......
-
为什么要改变它的高度?你追求什么样的外表?
-
我想在这个视图中添加一些文本字段,在这些文本字段下面我想添加一个合适的视图..所以我需要增加由于 tableview 的高度
标签: swift height uialertcontroller