I have an array with the following format:
[NSArray arrayWithObjects:
[NSArray arrayWithObjects:@"number",@"name",@"date",@"about",nil],
[NSArray arrayWithObjects:@"number",@"name",@"date",@"about",nil],
[NSArray arrayWithObjects:@"number",@"name",@"date",@"about",nil],
[NSArray arrayWithObjects:@"number",@"name",@"date",@"about",nil],
nil];
I want to structure this data to load into my tableView.
Each row of the tableview should correspond to each row of the array, then the title of each cell should correspond to the subarray objectAtIndex 2 for the name.
Suppose your array is named
myData:In favor of reusability, I would suggest to replace the subarrays with NSDictionaries so that you can get e.g. the name by calling
[dict objectForKey:@"name"].