I want to implement a TableView with a Custom TableViewCell showing an image.
To make this simple, I simply put a UIImageView inside a tableviewcell using autolayout
Remove the height constraint from your imageView. Choose the contentMode of image view that starts with "aspect" eg: aspect fill or aspect fit (as it fits according to your requirements).
NOTE: You also need to set the height of the row so that the imageView fits in it. Use
heightForRowAtIndexPath
to set custom row height.