Last Updated: February 25, 2016
·
1.218K
· saturngod

AspectFill autoresize problem

Today, I have a problem with AspectFill. When I add the image in UIImageView, it will autoresize. So, I face the problem with design.

I found a solution,now. Just put clipsToBounds = YES

self.profileImage.image = fetchedImage;
self.profileImage.contentMode = UIViewContentModeScaleAspectFill;
self.profileImage.clipsToBounds = YES;