tabbar memory management

前端 未结 3 1110
误落风尘
误落风尘 2021-01-16 07:22

a tab bar based app with 5 tabs switching option...how i am suppose to manage memory efficiently?

switching between tab are very frequent i am how to manage this sce

3条回答
  •  温柔的废话
    2021-01-16 07:58

    You don't need to worry about it, unless you're in a low memory situation, in which case the view controllers' views may be released, and you just need to correctly implement:

    didReceiveMemoryWarning
    

    and

    viewDidUnload
    

    See Apple docs here and here for details.

提交回复
热议问题