ActionSheet exception inAlertViewController iPad iOS Swift
In iPad, if you are tried with below code it will be the crash.But in iPhone, it will work well.
self.present(alert, animated: true, completion: nil)
So before present, the alert add the below code.
alert.popoverPresentationController?.sourceView = self.view
Comments
Post a Comment