title: Different section headers in UITableView of a nested NSArray
body: <p>I am trying to learn how to code a UITableView and is having some problems with the programming of the section.</p>
  
  <p>I have declared 3 arrays with strings and 1 array with the 3 arrays.</p>
  
  <pre><code>firstSection = [NSArray arrayWithObjects:@"Red", @"Blue", nil];
  secondSection = [NSArray arrayWithObjects:@"Orange", @"Green", @"Purple", nil];
  thirdSection = [NSArray arrayWithObject:@"Yellow"];
  
  array = [[NSMutableArray alloc] initWithObjects:firstSection, secondSection, thirdSection, nil];
  </code></pre>
  
  <p>To shows the headers</p>
  
  <pre><code>-(NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section{
  
  NSString * title;
  title = [NSString stringWithFormat:@"%@" , [array objectAtIndex:section]];
  
  return title;
  }
  </code></pre>
  
  <p>which shows the array itself as the headers</p>
  
  <p><img src="https://i.stack.imgur.com/yvj9N.png" alt="enter image description here"></p>
  
  <p>therefore is it possible to actually show the name of the sections using the names of the arrays such as firstSection and secondSection?</p>