Ok j'ai donc ce codeiPhone UIAlertView Problème
NSMutableArray *smartThings = [[NSMutableArray alloc] initWithCapacity:3];
NSMutableString *smartString = [NSString alloc];
int random;
int numOfThings = 1;
random = arc4random() % numOfThings;
smartString = [smartThings objectAtIndex:random];
UIAlertView *smartAlert = [[UIAlertView alloc] initWithTitle:@"Thing To Say" message:smartString delegate:self cancelButtonTitle:@"Thanks" otherButtonTitles:nil];
[smartAlert show];
[smartAlert release];
[smartThings release];
Qu'est-ce qu'il « devrait » faire est de créer une UIAlertView sur une chaîne, et cette chaîne est créée à partir d'un tableau de chaînes.
Lorsque je l'exécute et que j'appuie sur le bouton pour appeler ce code, le programme se bloque. S'il vous plaît aider
Et oui j'ai branché toutes les connexions dans IB.