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.
If you want to indent the Section text from the left margin, here is a simple way I did it. In the function, see the space after the first quote mark? Just put as many spaces as you need before the start of the text.

```
func tableView(tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? {
        let title: UILabel = UILabel()

        title.text = " \(sortedSections[section])"
        title.textAlignment = NSTextAlignment.Left

        return title
    }

```