I have a text label that change when i press a button, the label does change with the use of a array, but instead of the value of the array i get the keys of the array.
What should i do to get the values?
This is the code:
NSString*path = [[NSBundle mainBundle]pathForResource:@"words" ofType:@"plist"];
words = [[NSMutableArray alloc]initWithContentsOfFile:path];
NSString*generateRandomLabel =[NSString stringWithFormat:@"%d", arc4random_uniform([ words count])];
[self.randomLabel setText:generateRandomLabel];
1 Answer