something like this should work
Code:
[imageView setTranslatesAutoresizingMaskIntoConstraints:NO];
[tableView.contentView addSubview:imageView];
NSDictionary *viewDict = @{@"imageView" : imageView};
[tableViewCell.contentView addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"V:|-0-[imageView]-0-|" options:0 metrics:nil views:viewDict]];
[tableViewCell.contentView addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"H:[imageView]-0-|" options:0 metrics:nil views:viewDict]];
[imageView addConstraint:[NSLayoutConstraint constraintWithItem:imageView attribute:NSLayoutAttributeWidth relatedBy:NSLayoutRelationEqual toItem:imageView attribute:NSLayoutAttributeHeight multiplier:1.0 constant:0.0]];
Note: haven't tried it and I typed it outside of Xcode (no completion)
Basically, you add the image view and then add 4 constraints
the first constraint line is adding two, because you pin the image view top and bottom to the top and bottom of your tableviewcell's content view.
The next line adds a constraint to pin the right side to the right side of your tableviewcell content view
The next line says make the image view as wide as it is tall (but you could change this if you don't want it to be square)