I have an array initialized
- (void) viewDidLoad {
NSArray *myArray = [NSArray arrayWithObjects:
[NSArray arrayWithObjects:@"item 1-1", @"item 1-2", nil],
[NSArray arrayWithObjects:@"item 2-1", @"item 2-2", nil],
[NSArray arrayWithObjects:@"item 3-1", @"item 3-2", nil],
nil];
}
- (IBAction) someButtonPressed {
NSString *text = // and here I can't figure out how to actually access the value needed
[someLabel setText:text];
}
I need to set someLabel text to the "item 1-2" value, for instance. How can I do that?