I’ve got a large display area that can be panned and zoomed to view different objects. The problem that I’m running into is that the quality of the PNG images UIButton becomes somewhat degraded if I’m zoomed out (however it is back to normal when I zoom back in to 100%). It almost looks as if the image becomes oversharpened. Is this something that I’m going to have to live with, or is there a way to get rid of this grainy edge effect? The aspect ratio of the images are always 1:1, by the way.
Share
I was able to solve this by using the answer found here in my scrollViewDidEndZooming method. Here is my code:
Resize function
ScrollView Method
(Widget is a UIViewController subclass which contains a button and a “widgetImage” which stores the full resolution of the image that the button should display)