Problems with memory management, autorelease, permanent heap is sometimes 250+ kb on iOS

前端 未结 2 1612
生来不讨喜
生来不讨喜 2021-01-25 08:03

I\'m really pulling my hair out on this one, it seems that I\'m having severe issues with memory management on an iOS app.

Here\'s the case: first I load table. When the

2条回答
  •  佛祖请我去吃肉
    2021-01-25 08:24

    Are you using imageNamed to load your images - this method will keep all images cached in memory. Try initWithContentsOfFile instead.

    Watch out though; initWithContentsOfFile: won't cache at all so if you use this method a lot for the same image then you should be using imageNamed:!

提交回复
热议问题