У меня есть инициализированный массив
- (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];
}
Мне нужно, например, установить для текста someLabel значение "элемент 1-2".Как я могу это сделать?