Skip to content

Instantly share code, notes, and snippets.

@iannase
Created September 30, 2017 20:50
Show Gist options
  • Save iannase/760de4d981334908af808973a6a66e14 to your computer and use it in GitHub Desktop.
Save iannase/760de4d981334908af808973a6a66e14 to your computer and use it in GitHub Desktop.
let alert = UIAlertController(title: "Awesome", message: "You've finished all the questions. Do you want to start over?", preferredStyle: .alert)
let restartAction = UIAlertAction(title: "Restart", style: .default, handler: { (UIAlertAction) in
self.startOver()
})
alert.addAction(restartAction)
present(alert, animated: true, completion: nil)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment