rejeter un UIAlertView par programmation

J'ai besoin d'aide concernant le congédiement d'un UIAlertView par programmation. Actuellement, j'ai cette

UIAlertView *alert1 = [[UIAlertView alloc]initWithTitle:@"title" message:@"message" delegate:nil cancelButtonTitle:nil otherButtonTitles:nil];

puis plus tard, j'appelle cela

[alert1 dismissWithClickedButtonIndex:0 animated:NO];

mais rien ne se passe.

source d'informationauteur Nick P