I have this alert confirm box in swift, it works perfectly in IOS 8, but it does not work in IOS 7, how can i resolve it please ?
Here is my code
var refreshAlert = UIAlertController(title: "Cerrando la aplicacion!", message: "Seguro que desea Cerrar ?", preferredStyle: UIAlertControllerStyle.Alert)
refreshAlert.addAction(UIAlertAction(title: "Si", style: .Default, handler: { (action: UIAlertAction!) in
exit(0)
}))
refreshAlert.addAction(UIAlertAction(title: "No", style: .Default, handler: { (action: UIAlertAction!) in
println("ho hace nada")
}))
presentViewController(refreshAlert, animated: true, completion: nil)