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: 
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";
}

```
in you cellForRowAtIndeaPath method add a view into cell like

```
UIView* view = [[UIView alloc] initWithFrame:CGrectmake(cell.frame.ori.x, cell.frame.ori.y, 20.0, cell.height)];

view.backgroundColor = desired color

[cell.containView addSubView: view];

```

add this into your first cell code and you are done