So I've let the user transform a UIImage inside of my custom TransformView which is a subclassed UIImageView. It allows the user to rotate, scale, and pan using touchesEnded, touchesMoved, etc. Now what I'm trying to do, because my image is so large and takes up too much memory, is to remove it from view and set it to nil when the user switches tabs.
How do I save the state of the image so that it can load again from the same position? I want it to have the same zoom level, rotation, and position on screen. Any thoughts? Thanks so much!