title: How to change UITableView Section color and Text color
body: <p>I have <code>UITableView</code> which populates dates from the plist and Even Section's Title is been populated from plist in <code>UITableView</code>.it gives me the default <code>blue</code> section color and <code>White</code> text color.like this...</p>
  
  <pre><code>-(NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section {
  
  
  NSString *key = nil;
  if ([tableView isEqual:self.searchDisplayController.searchResultsTableView])
  {
      key = [self.searchResults objectAtIndex:section];
  }
  else{
      key = [self.mySections objectAtIndex:section];
  }
  
  //    NSString *key = [self.mySections objectAtIndex:section];
  return [NSString stringWithFormat:@"%@", key];
  
   }
  </code></pre>
  
  <p>.
  Now I need to change this default text color and Section's color, to do that I am implementing code shown below.But it gives me its own <code>UIView</code>. </p>
  
  <pre><code>-(UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section
  {
      UIView *tempView=[[UIView alloc]initWithFrame:CGRectMake(0,200,300,244)];
      tempView.backgroundColor=[UIColor clearColor];
  
      UILabel *tempLabel=[[UILabel alloc]initWithFrame:CGRectMake(15,0,300,44)];
      tempLabel.backgroundColor=[UIColor clearColor]; 
      tempLabel.shadowColor = [UIColor blackColor];
      tempLabel.shadowOffset = CGSizeMake(0,2);
      tempLabel.textColor = [UIColor redColor]; //here you can change the text color of header.
      tempLabel.font = [UIFont fontWithName:@"Helvetica" size:fontSizeForHeaders];
      tempLabel.font = [UIFont boldSystemFontOfSize:fontSizeForHeaders];
          tempLabel.text=@"Header Text";
  
      [tempView addSubview:tempLabel];
  
      [tempLabel release];
      return tempView;
  }
  </code></pre>