iOS 6 - viewDidUnload migrate to didReceiveMemoryWarning?

前端 未结 5 1832
遥遥无期
遥遥无期 2020-11-30 20:41

So with viewDidUnload deprecated as of iOS 6, what do I need to do now?

Delete it, and migrate all of it\'s contents in didReceiveMemoryWarning

5条回答
  •  暖寄归人
    2020-11-30 21:29

    Depends on what you do in viewDidUnload but you can use didReceiveMemoryWarning or dealloc to release data. See this.

提交回复
热议问题