Show UIAlertController if already showing an Alert

前端 未结 5 926
攒了一身酷
攒了一身酷 2020-12-06 18:15

Difference between the legacy UIAlertView and the new UIAlertController is that the latter needs to be presented onto a specific viewcontroller wit

5条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-06 18:56

    Since UIAlertController is itself a UIViewController, you can present a second UIAlertController on top of the first one by presenting from the existing one:

    alertController.PresentViewController(alertController2,  animated: true, completionHandler: null)
    

提交回复
热议问题