Question: with the transition on iOS7 the separator has 15px padding on left. I know that i can remove this padding with separator inset feature on the UITableView setting in the xib file, but i need to keep heading text with padding. How to do it?

default:

![enter image description here](https://i.stack.imgur.com/Zmuay.png)

with custom on separator inset to 0:

![enter image description here](https://i.stack.imgur.com/ou9bX.png)

i need to keep separators like figure 2, but the header with "2013" like picture 1.

Answer: 
for Seperator you can set it via Storyboard 

and for header make a custom header like this

```c
- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section { 
  UIView *viewHeader = [UIView.alloc initWithFrame:CGRectMake(0, 0, tableView.frame.size.width, 28)];
  UILabel *lblTitle = [UILabel.alloc initWithFrame:CGRectMake(6, 3, 136, 21)];

  [lblTitle setFont:[UIFont fontWithName:@"HelveticaNeue" size:13]];
  [lblTitle setTextColor:[UIColor blackColor]];
  [lblTitle setTextAlignment:NSTextAlignmentLeft];
  [lblTitle setBackgroundColor:[UIColor clearColor]];
  [viewHeader addSubview:lblTitle];

  return viewHeader;
}

```

give it any particular height. and give it any text.
make an Array for section Headers which will contain your years.
You might not want to create a custom header view always because sometimes its a overkill or it'll need some trial and error to make it exactly like the default section title. Instead there is a simple hack which won't need to return a custom header view. Just set your separator indent to 0 and put some leading space in the title string.

![enter image description here](https://i.stack.imgur.com/aly9K.png)

```
- (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section {
    return @"    Your Title";
}

```