我如何显示多个 UialertController
How can i show more than one UialertController
您好,我正在制作一个注册表视图,我必须显示此人在 uialertcontroller 中填写的错误总数。
for var i = 0; i < subJson.count; i++ {
let messag = ("\(key): \(subJson[i])")
let alert = UIAlertController(title: "Error al registrarse", message: messag, preferredStyle: .Alert)
let acceptAction = UIAlertAction(title: "Aceptar", style: .Default , handler: nil)
alert.addAction(acceptAction)
self.presentViewController(alert, animated: true, completion: nil)
}
我有这个,错误是:
尝试呈现已经呈现的 UIAlertController(空)
不可以,您一次只能显示一个警报。
现在不可能,因为 de uialertview 在 xcode 7.0.1 版中已弃用。
所以尝试重建您的应用程序逻辑
您好,我正在制作一个注册表视图,我必须显示此人在 uialertcontroller 中填写的错误总数。
for var i = 0; i < subJson.count; i++ {
let messag = ("\(key): \(subJson[i])")
let alert = UIAlertController(title: "Error al registrarse", message: messag, preferredStyle: .Alert)
let acceptAction = UIAlertAction(title: "Aceptar", style: .Default , handler: nil)
alert.addAction(acceptAction)
self.presentViewController(alert, animated: true, completion: nil)
}
我有这个,错误是:
尝试呈现已经呈现的 UIAlertController(空)
不可以,您一次只能显示一个警报。
现在不可能,因为 de uialertview 在 xcode 7.0.1 版中已弃用。
所以尝试重建您的应用程序逻辑