How to programmatically dismiss UIAlertController without any buttons?

前端 未结 5 1530
[愿得一人]
[愿得一人] 2020-12-09 07:52

I\'m presenting an UIAlertViewController without any buttons, as it is supposed to just inform users that uploading is in progress. The app is supposed to upload some files

5条回答
  •  感情败类
    2020-12-09 08:26

    for swift you can do:

    nameOfYourAlertController.dismiss(animated: true, completion: nil)

    true will animate the disappearance, and false will abruptly remove the alert

提交回复
热议问题