This question already has an answer here:
- Picking a Random Object in an NSArray 7 answers
I have a NSArray with some NSString objects,
self.array1 = [NSArray arrayWithObjects:@"abc",@"ear",@"kkd",@"llk",@"dis",@"aic", nil];
and I hope I can get these NSString to show on my Label at Storyboard randomly, How can I achieve this?THX~
Aucun commentaire:
Enregistrer un commentaire