Tell me will our iPhone application crash because it is out of memory
(1)When it is using more memory than RAM has built in.
or
(2)It is independent of RAM Memory and crashes when application is taking memory than total iPhone which include secondary (virtual) memory.
There is no virtual memory on the iPhone. The system and all apps have to fit in RAM. If your app starts to use a lot of memory and gets close to this limit you will be sent a memory warning.
The App Delegate will recieve
Most UIKit View Controllers will notify their child view controllers this has happened. This means that in your view controllers you will probably receive the message:
There is also a notification posted that you can listen for
In these methods you need to get rid of objects that may be taking up lots of memory that you dont need anymore like image caches and large bits of data.
If your app continues to consume memory then your app will be killed by the system. This will look like a crash to the user.