I developed an iPhone app with a convenient location that works perfectly with our expectations, except for the low state of the phone.
In conditions of low phone memory, my application simply crashes, and if I increase the phone's memory, freeing up space, it starts working again without failures.
when I made some mistake in working on the problem, I found that in low memory conditions the OS will send didReceiveMemoryWarning to all controllers of the current hierarchy, so that each of them should implement the didReceiveMemoryWarning method, and also set iboutlet to nil for which is not currently displayed.
I also read somewhere that if the view for this controller is not visible, the setView method with the nil parameter will be called, and if there are some output variables attached to the view, there will be a problem when deleting them.
So, with all these funds, what is best suited for working with the low memory level caused by Iphone by implementing the didReceiveMemoryWarning and viewDidUnload methods .
Please give the correct example or link, if possible, to solve the above problem.
thank.
memory-management iphone
harshalb Mar 12 2018-10-12T00: 00Z
source share