With the power that you use in your Iphone / smartphone, the time taken to compute several tests is ridiculous to think “is it really worth checking”, it is always a good test and catch any failures in your code / distributions, (if you do not, this it's more like you're lazy to add a few extra lines to your code.
In addition, “allowing the application to crash” gives a REALLY bad impression on your application, the user sees the application closely for no reason and thinks about its poor quality software. You should always add your tests, and if you can’t do anything about the error, at least you should display a message before closing the application (makes the user less upset).
There are several options when tracking memory allocation, such as catch catch. if the returned pointer is zero, check the size of the list, etc.
you should think about how to start the application in case of distribution failure:
if this is a jsut view of your interface, display a message that does not load a specific view ...
If this is the main and only view, close the application with the message
...
I don’t know which application you are running on, but if you have little memory, you should consider creating a system to allocate freed memory as your progress in your application so that you always have the maximum available memory. it may be a little slower than saving caching, but the quality of your application will improve if you suppress any power.
Jason rogers
source share