Reputation: 1354
I want to ensure my app is handling memory correctly, i have it destroying panels on the 'erased' event, but when i do this to tab panels, it obviously removes them from the tabbar.
What strategy is best for handling memory and when tab panels are out of view?
Upvotes: 1
Views: 898
Reputation: 973
This can actually be done, and it's a great technique but it's a bit difficult to implement. First off you need to not use the tabpanel. You need to create your own version of the tabpanel. The strategy is this:
I put together some boilerplate awhile back when Sencha Touch 2 was in pre release. The concepts are still applicable, though some of the code needs to be upgraded. Take a look here:
https://github.com/ARolek/Sencha-Touch-2.0-MVC-Boilerplate
This is not an easy concept, so let me know what needs clarification.
Hope this helps.
Upvotes: 1