I am storing high resolution images in the iPhone cache. I am getting memory warning and the app is crashing.
How do I handle the accident?
You can reduce the size of the image and save it below the method reduces image size is.
NSDT * ImageData = UIImageJPEG Report (YOUR_IMAGE_OBJECT, 0.0);
The second parameter determines the quality and size of the image. It varies from 0.0 to 1.0.
Please try it
Comments
Post a Comment