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: 
**USING SWIFT AND STORYBOARD**

In storyboard you can set different separator insets for the TableView (header) and for Cells (separators).

Set the separator inset for cell to 0, by selecting the cell in Storyboard and setting the following:

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

Then set the separator inset for the TableView (for the header) to 15, by selecting the TableView in Storyboard and setting the following:

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

**OPTIONAL:**

You may also need to set the margins on the cells to be zero programmatically to ensure that the separator goes all the way from left to right. Use this code if needed in your table view controller's swift file:

```
override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {

    let cell: UITableViewCell = tableView.dequeueReusableCellWithIdentifier("YOURCELL", forIndexPath: indexPath) as! UITableViewCell

    // THIS IS THE IMPORTANT PART...
    cell.layoutMargins = UIEdgeInsetsZero
    cell.preservesSuperviewLayoutMargins = false

    return cell

}

```
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