I have used UIImageView
inside the UITableViewCell
and it will fill the contentView.I have try different mode like "Scale To Fill","Aspect Fit",""Aspect Fill" to handell UIImageView inside UITableViewCell. UIImageView inside UITableViewCell is running out of the screen in Aspect Fill. I have set constraints for the image as shown below
It works fine as below
But when image size is too large it shows problem as below that it goes outside the cell boundary
I have use
Aspect Fill
as shown below image
when I use
Aspect Fit
I got this problem
When I use
Scale To Fill
I got this problem
In
Aspect Fit
andScale To Fill
I got margin in left and right as shown abovebelow link doesnt address my problem so its not duplicate
UIImageView inside UITableViewCell does not get updated
Resizing UIImageView inside a UITableViewCell
iOS 8 - AutoLayout issue - UIImageView inside UITableViewCell ignoring width constraints