Hi there! I’m getting lots of low memory errors with my app. So I decided to try Apple Instruments to see where the problem might be. The first problem is: I don’t understand Apple Instruments
I connected my iPhone to the MacBook and started Apple Instruments, selecting “Allocations”. Then I started my app. So my question is: the column “Persistent” shows the memory that’s being allocated to the app, right? So that’s the one I need to bring down. Is this correct? I have attached a screenshot.
If so, I don’t understand these two things:
“Persistent” values are going up while the app is open although the app does nothing. I am just looking at the app and don’t touch it but the memory is going up slowly. What does that mean? Is there something running in the background?
When I open a view showing a few iOS Table Cells with images on it, the memory goes up. As expected I guess. When I close the view I had assumed that the images are being released from the memory automatically and I don’t have to worry about them any longer. That doesn’t seem to be the case because the memory never goes down (regardless of what I do). How do I handle these things? Do I need to kill every image ever shown from memory when I close a view?
Thank you already!