I’d like to dismiss the whole modal view controller by tapping cancel on the UIAlertView that I implemented. The alert view asks the user if he wants to logout and if the user taps Yes, it’ll dismiss the modal view controller.
How can I do this in Xcode?
Thanks!
You can start by checking out the documentation on uialertviewdelegate.
First you need to declare your class as the delegate for the uialertview and then implement the method to get the index of button that the user has clicked.
You can use these methods to check the user’s choice