ios - UIImage Caching cause memory high -
consider:
+(nullable uiimage *)imagenamed:(nsstring *)name;
i use method so:
uiimage *image = [uiimage imagenamed:@"test"];
but image's type png.
in project, loads lot of different images.
so, cache hight
your images huge. 3001*4057 12 million pixels. theres 3 bytes in 1 pixel (one byte red, green , blue each), image size have 12million * 3 bytes, 36mb per image.
i scale down image size if can.
Comments
Post a Comment