guys:
There are two buttons in my viewController of the test application, on the right I call it “NO”,
and the other is YES. Two buttons will call two different functions, and when
click one of the buttons, I want to show the user a warning to confirm this.
I know that UIAlertViewDelegate
- (void)alertView:(UIAlertView *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex
but there are two buttons, I am puzzled. How to find out which button is pressed.
So help me with this, thanks in advance!
source share