as a test I push and pop the same view again and again… I am going to the next screen and clicking on back over and over… and I can see the live bytes continuously increasing…
Although somewhere else in the application I come forth and back between 2 screens displaying table views, the live bytes increase and decrease of the same amount (execpt the first time).
So what do I need to check to understand what is going on… after 20 minutes playing, usually the application crashes – please note that at any time there are no memory leaks.
On these first views that I push and pop, the second screen has a picture and a textfield. Do I need to so something particular with these?
Also do I noted that I did not have the default functions viewWillDisappear and viewDidDisappear… do I need these? are they mandatory? added them did not change anything… so do I need to put something particular in them…
any help is much appreciated
Cheers,
geebee
You can find out exactly what changes over a period using Instruments’ Heapshot Analysis.
1) Profile using the allocations template
2) run the app (navigate around)
3) Click ‘Mark Heap” button
4) run the app (navigate around)
5) Click ‘Mark Heap” button
then look at the results of the Heapshot Analysis.
when your view is unloaded you should zero your
IBOutlets, free what you can easily reconstruct, and free what may be considered a large allocation.