If u have array created like this
quizArrayAnswers=[[NSMutableArray alloc] initWithObjects:
[NSMutableArray arrayWithObjects: @"blue", @"Red", @"Green",@"Yellow", nil],
[NSMutableArray arrayWithObjects: @"fred", @"jim", @"spud",@"tom", nil],
[NSMutableArray arrayWithObjects: @"albert", @"jim", @"spud",@"tom", nil],
//[NSMutableArray arrayWithObjects: @"emergency btn", @"fire alarm", @"doorbell",@"danger", nil],
[NSMutableArray arrayWithObjects: @"dog", @"rabbit", @"bird",@"flea", nil],nil];
how do u get the UITableView text label to display the first row of the first objects I’m trying this but no good all other table methods are done
cell.textLabel.text = [quizArrayQuestions objectAtIndex:[indexPath row]];
thanks
I’m not 100% what you are trying to achieve.
Your current logic will return one of the four
NSMutableArrayobjects. You will then need to decide which item from thisNSMutableArrayyou want to display and perform anotherobjectAtIndex:call.So for example if you was on row 2 your current code would return this object
You would then need to grab one of the strings. It may look like this