title: How to add header title for every Section in Table
body: <p>I have four sections in my UITableView, how do I add a header for each section? 
  I am using the following code, but it's not working.</p>
  
  <pre><code>- (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section { 
  
      if (section == 0) 
          return @"Tasks";
  
      if (section == 1) 
          return @"Appointments";
  
      if (section == 2) 
          return @"Activities";
  
      if (section == 3) 
          return @"Inactivities";
  }
  </code></pre>