title: How can I set a variable in viewForHeaderInSection, and then use it in cellForRowAtIndexPath?
body: <p>In my table's <code>viewForHeaderInSection</code>, I'm setting the variable <code>_searchTerm</code>, using the section index like so:</p>
  
  <pre><code>- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section {
      UIView *headerView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 320, 21)];
      headerView.backgroundColor = [UIColor colorWithRed:0.949 green:0.949 blue:0.949 alpha:1];
  
      _searchTerm = [[[[_matchCenterData  objectAtIndex:section] objectForKey:@"Top 3"] objectAtIndex:0]objectForKey:@"Search Term"];
  
      return nil;
  }
  </code></pre>
  
  <p>For each section, I want to use its respective <code>_searchTerm</code> variable in <code>cellForRowAtIndexPath</code> like so:</p>
  
  <pre><code>- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
  {
      //load top 3 data
      NSDictionary *currentSectionDictionary = _matchCenterData[indexPath.section];
      NSArray *top3ArrayForSection = currentSectionDictionary[@"Top 3"];
      //... code removed to brevity
  
      // title of the item
      cell.textLabel.text = _searchTerm;
  }
  </code></pre>
  
  <p>This doesn't seem to be working, the cells textLabel is showing up as blank. Is it possible to use a variable from <code>viewForHeaderInSection</code> in <code>cellForRowAtIndexPath</code>, and if so, what am I doing wrong?</p>