Вы не можете одновременно отображать несколько предупреждений, и если вы делали это раньше, вы плохо себя чувствовали. Переосмыслите свой интерфейс.
Вы можете легко представить предупреждения подряд , что вам действительно нужно:
let alert = UIAlertController(title: "One", message: nil, preferredStyle: .Alert)
alert.addAction(UIAlertAction(title: "Next", style: .Default, handler: {
_ in
let alert2 = UIAlertController(title: "Two", message: nil, preferredStyle: .Alert)
alert2.addAction(UIAlertAction(title: "OK", style: .Cancel, handler:nil))
self.presentViewController(alert2, animated: true, completion: nil)
}))
self.presentViewController(alert, animated: true, completion: nil)
Я имел ту же проблему и решил ее:
(благодаря ответам [1 113] user63889 и Ivan в комментариях)