Table view images never being released

前端 未结 3 1714
心在旅途
心在旅途 2020-11-28 12:29

I\'m working on a major update to one of my applications and trying to cut down memory usage and making it cleaner and faster. I was using Instruments to profile the app and

3条回答
  •  孤街浪徒
    2020-11-28 13:08

    Try to use imageWithContentsOfFile to load image.

    As rmaddy said,imageNamed will let your image stay in cache,this is the reason for your memory problem

提交回复
热议问题