I am trying to put an image in the center of a table view cell using constraints programmatically.
I have taken an working example from the internet and updated it to this:
contentView.addConstraints(NSLayoutConstraint.constraintsWithVisualFormat("H:|-(<=1)-[image(10)]", options: NSLayoutFormatOptions.AlignAllCenterX, metrics: nil, views: viewsDict))
What am I doing wrong? The image disappears from the table view cell when I set this.