Presenting a view controller modally from an action sheet's delegate in iOS8 - iOS11

前端 未结 9 1996
我寻月下人不归
我寻月下人不归 2020-12-01 01:43

So I noticed that in iOS8 beta 3 (Update: still happens in iOS 11.2) on iPad, when attempting to present a view controller from within a delegate method of

9条回答
  •  离开以前
    2020-12-01 02:23

    I fixed it in Swift 3 with the following code

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

提交回复
热议问题