【发布时间】:2014-08-17 12:56:35
【问题描述】:
当像这样使用 UIAlertController 时:
var alert = UIAlertController(title: "Core Location",
message: "Location Services Disabled!",
preferredStyle: UIAlertControllerStyle.Alert)
alert.addAction(UIAlertAction(title: "OK", style: UIAlertActionStyle.Default,
handler: nil))
self.navigationController.presentViewController(alert, animated: true,
completion: nil)
我注意到警报视图的关闭似乎是自动完成的。 不应该由呈现 ViewController 通过委托调用来解除呈现的 ViewController 吗?
【问题讨论】: