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;
Written by Htain Lin Shwe
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Uiimageview
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#