This question may have been answered, but I can’t find a solution to the problem after several hours of browsing the Internet.
I have UIImageView(320 * 320) in a custom UITableCell with UIImage(320 * 320) inside. When I click the button, the size UIImageViewchanges to 320 * 80 ( animated ) and UIImage too.
How can I do to prevent resizing UIImage? I would like this UIImageone to remain the same and show only part of this image (frame 320 * 80 with zero 0/0)
Edit: crop
I thought about cropping the image to the desired size, and then setting the UIImageView image to a full-size image, but it looks ugly, because when the user clicks on the UIImageView , it is still 320 * 320, but the UIImage is set to cropped (320 * 80) so it is stretched ...
thank
source
share