iPhone Development - Lessons in memory management

前端 未结 5 1772
既然无缘
既然无缘 2021-02-04 15:47

I need lessons in memory management. I have an application that uses multiple views (around 10), some of these are attached to tab controller. Problem is that I\'m using images

5条回答
  •  独厮守ぢ
    2021-02-04 16:26

    The autoreleased memory is released when control is returned back to the system, but only when it chooses to. If you wish to force memory to be released use "release" which works there and then.

    It should be noted that because of memory fragmentation that allocating and deallocating a block of memory may not seem to get you back to where you started in terms of measurable "free" memory.

    Tony

提交回复
热议问题