title: Separator lines for UITableViewCellStyleSubtitle cells not taking the full width
body: <p>I have prepared <a href="https://github.com/afarber/ios-newbie/tree/q6/MySubtitle" rel="nofollow noreferrer">a simple test project</a> for my question at GitHub.</p>
  
  <p>When using <a href="https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/TableView_iPhone/TableViewCells/TableViewCells.html" rel="nofollow noreferrer">UITableViewCellStyleSubtitle</a> type of cells (called <em>Subtitle</em> in Xcode Interface Builder) - for some reason the horizontal lines are not reaching the left side of the screen:</p>
  
  <p><img src="https://i.stack.imgur.com/04PtQ.png" alt="app screenshot"></p>
  
  <p>At the above screenshot you can see that the separator lines in "empty cells" are occupying the whole width just fine.</p>
  
  <p>First I thought that the icons (size: <a href="https://github.com/afarber/ios-newbie/tree/q6/MySubtitle/MySubtitle/graphics" rel="nofollow noreferrer">46 x 46 pixels</a>) were not fitting into the cells and tried to increase the row height, but this does not help.</p>
  
  <p>Also I have tried to set <strong>Custom Insets</strong> to <strong>Custom</strong> and there <strong>Left</strong> to 0 pixels (both for <em>Table View</em> and for <em>MyCell</em>), but there is still a gap on the left side:</p>
  
  <p><img src="https://i.stack.imgur.com/2dIGJ.png" alt="Xcode screenshot"></p>
  
  <p>Here the source code of my <a href="https://github.com/afarber/ios-newbie/blob/q6/MySubtitle/MySubtitle/TableViewController.m" rel="nofollow noreferrer">TableViewController.m</a>:</p>
  
  <pre><code>- (void)viewDidLoad {
      [super viewDidLoad];
  
      self.items = [[NSMutableArray alloc] initWithArray:@[
          @{@"title": @"Title 1", @"subtitle": @"Sub Title 1", @"icon": @"signal4.png"},
          @{@"title": @"Title 2", @"subtitle": @"Sub Title 2", @"icon": @"signal1.png"},
          @{@"title": @"Title 3", @"subtitle": @"Sub Title 3", @"icon": @"signal2.png"},
          @{@"title": @"Title 4", @"subtitle": @"Sub Title 4", @"icon": @"signal3.png"}
      ]];
  }
  
  #pragma mark - Table view data source
  - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
      return 1;
  }
  
  - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
      return self.items.count;
  }
  
  - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
      UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"MyCell" forIndexPath:indexPath];
  
      NSDictionary* item = [self.items objectAtIndex:indexPath.row];
      cell.textLabel.text = item[@"title"];
      cell.detailTextLabel.text = item[@"subtitle"];
      UIImage* icon = [UIImage imageNamed:item[@"icon"]];
      [cell.imageView setImage:icon];
  
      return cell;
  }
  </code></pre>
  
  <p><strong>UPDATE:</strong> The source code from this answer has helped me at the end: 
  <a href="https://stackoverflow.com/questions/25770119/ios-8-uitableview-separator-inset-0-not-working">iOS 8 UITableView separator inset 0 not working</a></p>
  
  <p><img src="https://i.stack.imgur.com/yDtvw.png" alt="fixed screenshot"></p>
  
  <pre><code>-(void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath
  {
      // Remove seperator inset
      if ([cell respondsToSelector:@selector(setSeparatorInset:)]) {
             [cell setSeparatorInset:UIEdgeInsetsZero];
      }
  
      // Prevent the cell from inheriting the Table View's margin settings
      if ([cell respondsToSelector:@selector(setPreservesSuperviewLayoutMargins:)]) {
          [cell setPreservesSuperviewLayoutMargins:NO];
      }
  
      // Explictly set your cell's layout margins
      if ([cell respondsToSelector:@selector(setLayoutMargins:)]) {
          [cell setLayoutMargins:UIEdgeInsetsZero];
      }
  }
  
  /*
  -(void)viewDidLayoutSubviews
  {
      [super viewDidLayoutSubviews];
  
      // Force your tableview margins (this may be a bad idea)
      if ([self.tableView respondsToSelector:@selector(setSeparatorInset:)]) {
          [self.tableView setSeparatorInset:UIEdgeInsetsZero];
      }
  
      if ([self.tableView respondsToSelector:@selector(setLayoutMargins:)]) {
          [self.tableView setLayoutMargins:UIEdgeInsetsZero];
      }
  } 
  */
  </code></pre>