How can I set an auto layout constraint in "viewForHeaderInSection" for a UILabel view
<pre><code> func tableView(tableView:UITableView, viewForHeaderInSection section:Int) -&gt; UIView?{
        let newlabel = UILabel()
        //206-250

        newlabel.backgroundColor = UIColor(red: (135/255), green:(206/255), blue: (250/255), alpha: 1)
        newlabel.textColor = UIColor(white: 1, alpha: 1)
        newlabel.textAlignment = .Right
        newlabel.font = newlabel.font.fontWithSize(18)
        newlabel.adjustsFontSizeToFitWidth = true
        let horizontalcontraint = NSLayoutConstraint(item: newlabel, attribute: .Trailing, relatedBy: .Equal, toItem: view, attribute: .Trailing, multiplier: 1, constant: -20)
        NSLayoutConstraint.activateConstraints([horizontalcontraint])

        newlabel.constraints
        newlabel.text = keys[section]+" - "
        return newlabel
    }
</code></pre>

<p>I'm not sure how to reference the section header in the <code>toItem:</code> part of the constraint. Any advice would be appreciated. The UILabel is pinned up against the right side of the header and looks bad. I need a little spacing in there.</p>