UIImageView Animation too much memory consumption

后端 未结 4 1905
梦如初夏
梦如初夏 2021-01-14 03:39

I have a problem with memory and images that I am animating. First thing first, I am using ARC. On my initial screen I have about 60 images to animate. I am using this code

4条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-14 04:13

    How big is each image that you are loading (pixel wise and file size wise)?

    Your best bet is to optimise the images to reduce their file sizes/memory requirements. Try using jpg instead of png if you haven't yet. If they are part of a video sequence you can safely reduce their quality further without having a knockoff on perceived quality.

提交回复
热议问题