UIAlertController showing with delay

后端 未结 2 1378
梦谈多话
梦谈多话 2021-02-01 13:44

I\'m experiencing a problem with UIAlertController on my app now migrated to iOS8 with Date Picker inside.

Below is the code.

UIAlertController *AlertVie         


        
2条回答
  •  旧时难觅i
    2021-02-01 14:16

        DispatchQueue.main.async {
            self.present(alertView, animated: true, completion:nil)
        }
    

    Swift 3.0 version. Alternatively, setting animated: false also solved my problem.

提交回复
热议问题