We used to use UIAlertViewDelegate
in ViewController.h
to make our custom Alert button to do an action, like pressing the Play Again button in the alert window makes the game restart.
How do we do this with UIAlertController
, the replacement class for UIAlertView
?
I read this document bellow provided by Apple and didn't see a delegate method mentioned. Does it mean we don't do that anymore?
https://developer.apple.com/reference/uikit/uialertcontroller