Remove seperation between header/footer/cell in UITableView
<p>I have a problem with a line between cell which just doesn't want to go away. </p>

<p>I have tried the following</p>

<ul>
<li>Setting the seperator style to <code>.None</code> in both code and Interface Builder.</li>
<li>Increasing the size of the frame <code>CGRect</code> for <code>contentView</code> by 1px.</li>
<li><code>clipToBounds</code> to <code>true</code> for header, footer and cell.</li>
</ul>

<p>Whatever I do, I can't seem to ger rid of the lines in between:
<a href="https://i.stack.imgur.com/yCndv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yCndv.png" alt="Table"></a></p>

<p>Initiation of my TableView:</p>

<pre><code>@IBOutlet weak var tableView: UITableView! {
    didSet {
        tableView.contentInset = UIEdgeInsets(top: 20, left: 0, bottom: 0, right: 0)
        tableView.clipsToBounds = true
        tableView.separatorInset = UIEdgeInsetsZero
        tableView.separatorStyle = .None

        if let nib = NSBundle.mainBundle().loadNibNamed(LobbySliderHeaderCollectionReusableView.classIdentifier, owner: self, options: nil).first as? LobbySliderHeaderCollectionReusableView {
            tableView.tableHeaderView = nib
        }
    }
}
</code></pre>

<p>...</p>

<pre><code>extension LobbyViewController: UITableViewDataSource {

    func numberOfSectionsInTableView(tableView: UITableView) -&gt; Int {
        return categoryChunks.count
    }

    func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -&gt; Int {
        return 1
    }

    func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -&gt; UITableViewCell {
        var cellType: GameCollectionCellType!
        if let type = cellTypes[indexPath.item] {
            cellType = type
        } else {
            var isNot: GameCollectionCellType? = nil
            if let lastType = cellTypes[indexPath.item] {
                isNot = lastType
            }

            cellType = GameCollectionCellType.randomItem(isNot)
            cellTypes[indexPath.item] = cellType
        }

        let chunk = categoryChunks[indexPath.section][indexPath.row]

        let cell = tableView.dequeueReusableCellWithIdentifier(GameCollectionViewCell.classIdentifier, forIndexPath: indexPath) as! GameCollectionViewCell
        cell.configureWithGames(chunk)
        let color = waveColors[indexPath.section % 2]
        cell.fillColor = color
        cell.clipsToBounds = true

        return cell
    }

    func tableView(tableView: UITableView, viewForHeaderInSection section: Int) -&gt; UIView? {
        let lh = tableView.dequeueReusableCellWithIdentifier(LobbyHeader.classIdentifier) as! LobbyHeader

        lh.fillColor = waveColors[section % 2]
        lh.contentView.clipsToBounds = true

        if categories.count &gt; 0 {
            let cat = categories[section]
            lh.title.text = cat.name
            lh.showMore.setTitle("%@ items".localizedStringWithParameters(["\(cat.games.count)"]), forState: .Normal)
            lh.tag = section
        } else {
            lh.title.text = ""
        }
        lh.sizeToFit()

        return lh
    }

    func tableView(tableView: UITableView, viewForFooterInSection section: Int) -&gt; UIView? {
        let lf = tableView.dequeueReusableCellWithIdentifier(LobbyFooter.classIdentifier) as! LobbyFooter

        let i = section % 2 == 0 ? 1 : 0

        let color = waveColors[i]
        lf.waveView.fillColor = color
        lf.waveView.clipsToBounds = true
        lf.contentView.clipsToBounds = true

        let bgColor = waveColors[section%2]
        lf.contentView.backgroundColor = bgColor

        return lf
    }

    func tableView(tableView: UITableView, heightForHeaderInSection section: Int) -&gt; CGFloat {
        return 30
    }

    func tableView(tableView: UITableView, heightForFooterInSection section: Int) -&gt; CGFloat {
        return 10
    }

}
</code></pre>

<p>The lobby header cell, (footer and cell are similar):</p>

<pre><code>class LobbyHeader: UITableViewCell {

    @IBOutlet weak var title: UILabel!
    @IBOutlet weak var showMore: UIButton!
    var fillColor: UIColor = UIColor.clearColor() {
        didSet {
            contentView.backgroundColor = fillColor
        }
    }

    var showGames: (()-&gt;())?

    class func nibForView() -&gt; UINib {
        return UINib(nibName: classIdentifier, bundle: nil)
    }

    override func prepareForReuse() {
        super.prepareForReuse()

        title.text = ""
        showMore.setTitle("", forState: .Normal)
    }

    override func awakeFromNib() {
        super.awakeFromNib()

        backgroundColor = BackgroundColors.defaultBackgroundColor
    }

    @IBAction func showMoreAction(sender: UIButton) {
        if let showGames = showGames {
            showGames()
        }
    }

}
</code></pre>