UIAlertView deprecated in iOS 9
kryptics opened this issue · comments
Kris commented
I guess with the new XCode new depreciations... any ideas how to fixed this one?
'UIAlertView' was deprecated in iOS 9.0: UIAlertView is deprecated. Use UIAlertController with a preferredStyle of UIAlertControllerStyleAlert instead
again, thanks in advance!
Fethi El Hassasna commented
Hey @kryptics
Are you using the new version of the app? It's already using the UIAlertController
:
// AboutViewController
func showSendMailErrorAlert() {
let sendMailErrorAlert = UIAlertController(title: "Could Not Send Email", message: "Your device could not send e-mail. Please check e-mail configuration and try again.", preferredStyle: .alert)
let cancelAction = UIAlertAction(title: "OK", style: .cancel, handler: nil)
sendMailErrorAlert.addAction(cancelAction)
present(sendMailErrorAlert, animated: true, completion: nil)
}
Matthew Fecher commented
I'm closing this issue. Reason: The project has been updated.