As an example if I have this array:
_mode = [NSArray arrayWithObjects:
[NSArray arrayWithObjects:@"1", @"One", nil],
[NSArray arrayWithObjects:@"2", @"Two", nil],
[NSArray arrayWithObjects:@"3", @"Three", nil],
[NSArray arrayWithObjects:@"4", @"Four", nil],
[NSArray arrayWithObjects:@"5", @"Five", nil],
nil];
and I need to find which object of array _mode contains @"3" how would I do that?
I have tried selectedIndex = [_mode indexOfObject:@"3"]; and selectedIndex = [[_mode objectAtIndex:0] indexOfObject:@"sta"]; but neither work.