I am coding an iPhone App in which am using a UITableView which has several sections ; each section has a header & then its rows like this:

I can do the row styles correctly, by using custom UITableViewCell objects, but how do I do the header? As you can see:
- the header has the text centered with two lines drawn from it, one on each side
- The header color is different
- also the corners of each section are rounded
how do I achieve this, either programmatically or using Storyboard?
- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)sectionThis method, implemented as part of your UITableViewDelegate, is intended to allow you to to create custom views for headers in UITableViews. You can return any UIView from that method, whether it’s one that you want to create in Interface Builder, or in code.