How can I use two actions for UIButton click?I have a UIAlertView showing with two button.Play again and exit.Now i want to execute two method in the click event of these buttons.
How can I use two actions for UIButton click?I have a UIAlertView showing with
Share
UPDATE – May 2016
UIAlertView is deprecated. You can now use UIAlertController as explained here.
Old Answer with UIAlertView
You can create a UIAlertView like this
To handle AlertView button click, you have to
conform to
UIAlertViewDelegateprotocol.Then implement
UIAlertViewDelegateprotocol methods,