Guest User

Untitled

a guest
Jul 16th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:@"NO!"
  2. message:@"danger"
  3. delegate:self
  4. cancelButtonTitle:@"OK"
  5. otherButtonTitles:@"Annul", nil];
  6.  
  7. [alertView show];
  8. [alertView release];
  9.  
  10. - (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex
  11.  
  12. - (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex
  13. {
  14. if(buttonIndex == 0)//OK button pressed
  15. {
  16.  
  17. }
  18. else if(buttonIndex == 1)//Annul button pressed.
  19. {
  20.  
  21. }
  22. }
Add Comment
Please, Sign In to add comment