title: Swift Tableview always showing separator lines
body: <p>I seem to have a weird problem with one of my tableviews where I can't hide the separator lines ( I think they're separator lines, except that they're centred on the screen instead of hard up against the right hand side ).</p>
  
  <p>I create everything programmatically so no storyboard issues here.</p>
  
  <p>You can see the tiny 1px line above each of the cells below.</p>
  
  <p><img src="https://i.stack.imgur.com/QpAFV.jpg" alt="Screenshot of issue"></p>
  
  <p>I load my table using:</p>
  
  <pre><code>    self.tableView.frame = CGRectMake(0, 0, self.view.frame.width, self.view.frame.height)
      self.tableView.dataSource = self
      self.tableView.delegate = self
      self.tableView.registerClass(UITableViewCell.self, forCellReuseIdentifier: "cell")
      self.tableView.backgroundColor = UIColor.whiteColor()
      self.tableView.scrollEnabled = true
      self.tableView.bounces = false
      self.tableView.separatorStyle = UITableViewCellSeparatorStyle.None
      self.view.addSubview(self.tableView)
  </code></pre>
  
  <p>I also have a custom header which I implement using the following code:</p>
  
  <pre><code>func tableView(tableView: UITableView, willDisplayHeaderView view: UIView, forSection section: Int) {
  
      let header:UITableViewHeaderFooterView = view as! UITableViewHeaderFooterView
  
      header.textLabel.textColor = UIColor.whiteColor()
      header.textLabel.frame = header.bounds
      header.textLabel.textAlignment = NSTextAlignment.Center
  
      view.tintColor = constants.getTintColor()
      header.textLabel.textColor = UIColor.whiteColor()
  
  }
  </code></pre>
  
  <p>I've tried loading the table without the <code>willDisplayHeaderView</code> and the issue persists.</p>
  
  <p>I have also tried adding </p>
  
  <pre><code>tableview.separatorStyle = UITableViewCellSeparatorStyle.None 
  </code></pre>
  
  <p>and </p>
  
  <pre><code>tableView.separatorColor = UIColor.clearColor()
  </code></pre>
  
  <p>to the following methods:</p>
  
  <pre><code>func tableView(tableView: UITableView, willDisplayCell cell: UITableViewCell, forRowAtIndexPath indexPath: NSIndexPath) {
  
      tableView.separatorStyle = UITableViewCellSeparatorStyle.None
  
  }
  
  func numberOfSectionsInTableView(tableView: UITableView) -&gt; Int {
  
      tableView.separatorStyle = UITableViewCellSeparatorStyle.None
  
      return self.boards.count
  }
  
  func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -&gt; Int
  {
      tableView.separatorStyle = UITableViewCellSeparatorStyle.None
  
      return self.boards[section].items.count
  }
  
  func tableView(tableView: UITableView, titleForHeaderInSection section: Int) -&gt; String?
  {
      tableView.separatorStyle = UITableViewCellSeparatorStyle.None
  
      return self.boards[section].name
  }
  </code></pre>
  
  <p>EDIT:</p>
  
  <p>The cells are standard UITableViewCells with alternating colors for the cells, this is being set through:</p>
  
  <pre><code>func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -&gt; UITableViewCell
  {
  
      let cell:UITableViewCell = tableView.dequeueReusableCellWithIdentifier("cell", forIndexPath: indexPath) as! UITableViewCell
  
      cell.selectionStyle = UITableViewCellSelectionStyle.None
  
      if indexPath.row % 2 == 0 {
          // Even
          cell.backgroundColor = constants.UIColorFromRGB(0x1EACE0)
      } else {
          // Odd
          cell.backgroundColor = constants.UIColorFromRGB(0x6FBEE5)
      }
  
      cell.textLabel?.textColor = UIColor.whiteColor()
      cell.textLabel?.text = self.boards[indexPath.section].items[indexPath.row].title
  
      return cell
  }
  </code></pre>
  
  <p>EDIT 2:</p>
  
  <p>I've now added separator lines in and these aren't separators because you can still see them below the separator line.</p>
  
  <p><img src="https://i.stack.imgur.com/Ke5Dt.jpg" alt="enter image description here"> </p>
  
  <p>HELP! I'm confused. I have a number of other tableviews setup the same (as far as I can see) and they work fine.</p>
  
  <p>Thanks SO!</p>