title: iOS create one static cell at the top of a dynamic table
body: <p>The title pretty much says it. How do I create one static cell at the top of my dynamic table? I want to be able to use it as a legend for my table. Thanks.</p>
  
  <p>Here is my tableView code:</p>
  
  <pre><code>- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
  {
  
  static NSString *CellIdentifier = @"Cell";
  JointCAD *currentCall = [[xmlParser calls] objectAtIndex:indexPath.row];
  self.tableView.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"texture3.png"]];
  
  TableViewCell *cell = (TableViewCell *)[tableView dequeueReusableCellWithIdentifier:CellIdentifier];
  
  if (cell == nil)
  {
      cell = [[TableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier];
  
      UIView *selectionView = [[UIView alloc] initWithFrame:CGRectMake(10, 7, 200, 65)];
      [selectionView setBackgroundColor: [UIColor clearColor]];
      cell.selectedBackgroundView = selectionView;
  }
  
  cell.callTypeLabel.text = currentCall.currentCallType;
  cell.locationLabel.text = currentCall.location;
  cell.unitsLabel.text = currentCall.units;
  cell.stationLabel.text = [@"Station: " stringByAppendingString:currentCall.station];
  
  if ([currentCall.callType isEqualToString:@"F"]) {
      cell.imageType = Fire;
  }
  else {
      cell.imageType = EMS;
  }
  
  if ([currentCall.county isEqualToString:@"W"]) {
      cell.imageType1 = Washington;
  }
  else {
      cell.imageType1 = Clackamas;
  }
  
  return cell;
  
  }
  </code></pre>