samedi 3 octobre 2015

How to get a randomize NSString Object from NSArray [duplicate]

This question already has an answer here:

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