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

Popular posts from this blog

Invalid bundle error while upload the app to the app Store

store cgpoint in userdefaults iOS swift