iPhone Development - Lessons in memory management

前端 未结 5 1770
既然无缘
既然无缘 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:24

    According to Apple, you should not use autorelease and instead should retain and release objects explicitly as needed. autorelease will not release an object as soon as its function is over. If in the tableview you are using images downloaded from a webservice, try and cache these images and reuse them if possible. Another option is to only get those images which are being displayed.

提交回复
热议问题