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

Saved Image in document directory and save path in coredata not able to fetch the image file iOS swift