See Populating the Table View With Data for how to access and use section information.
When you have more then one section you implement some optional table view source methods to deal with sections.
Then when you create cell, check in which section it is and set it up accordingly, in:
- (UITableViewCell *)tableView:(UITableView *)tableView
cellForRowAtIndexPath:(NSIndexPath *)indexPath;
In this method you can access indexPath.section
and format your cell.
See Table View Programming Guide for more.
UIKit adds property section
to NSIndexPath
so you can get section
from index path passed in to the above method (see the first example I linked).