Author Topic: Memory management  (Read 5241 times)

runartrollet

  • Newbie
  • *
  • Posts: 15
  • The creator of Tally Board
    • View Profile
    • Tally Board
Memory management
« on: April 09, 2014, 03:41:02 AM »
I have just a quick question here. In my app, I have a container-view, which displays different views, going back and forth many times. I noticed that the memory slowly gets eaten up for every time I go back and forth between views, even if they are the same ones. So I thought I should add some code to release the views. Then I read from some sources on stack overflow, that I should just leave it and IOS will handle it, and release views not needed anymore when the memory gets low. Others say I need to write code.

Currently, my app is just using 12mb, and rising by about 1mb for every time I change the view. Since this is a game, it will happen quite a lot. And the game will also become bigger in size.

What is your view on this?

Thanks.
http://TallyBoardApp.com

- A game of Logic, Strategy and Math.

kjmcneish

  • Administrator
  • *****
  • Posts: 719
    • View Profile
Re: Memory management
« Reply #1 on: April 09, 2014, 03:54:45 AM »
Here's a link with some suggestions you can try to see if it eliminates your memory link:

Code: [Select]
http://stackoverflow.com/questions/13844432/container-uiviewcontroller-not-releasing-its-child-view-controllers

All the best!
Kevin