About changing the UIAlertview GUI

46 Views Asked by At

Yesterday I use UIAlertViewDelegate...

What is the difference between them :

-(void)alertView:(UIAlertView *)alertView willDismissWithButtonIndex:(NSInteger)buttonIndex
-(void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex
-(void)alertView:(UIAlertView *)alertView didDismissWithButtonIndex:(NSInteger)buttonIndex
1

There are 1 best solutions below

0
hmdeep On

this method called when after you clicked on button and before dismissing the alertView.

-(void)alertView:(UIAlertView *)alertView willDismissWithButtonIndex:(NSInteger)buttonIndex

this method called at the time you clicked on button.

-(void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex

this method called when after you clicked on button and after dismissing the alertView.

-(void)alertView:(UIAlertView *)alertView didDismissWithButtonIndex:(NSInteger)buttonIndex