Back to main view and free memory

Former Member
Former Member
Hi

What is the best way to go back to the first View and free all the memory. I always push new views and load objects but when I am done with the workout I would like to go back to the beginning and free the memory I allocated. This is not the case at the moment.
  • Your application should be keeping track of the views that are pushed, and pop them given the appropriate user input. You might want to consider switching between views (with Ui.switchToView()) that way you can get to the initial view by switching to it whenever you want.

    If you've got data in your view/delegate classes, you may need to pull that data out and put it into some other class and then pass references to an object of that type around.

    Travis