15. Low-Memory Warnings
The iPhone, while extremely powerful, still has its limitations. One of the most important and often overlooked limitations is the amount of memory an application can consume before the device simply gives up. iPhone OS constantly monitors an application’s memory usage and alerts the application when it is in danger of running out of memory.
When the operating system detects that it is low on memory, it sends your application a low-memory warning. A low-memory warning will occur when the device is consuming a large percentage of the available RAM. Overuse of graphical memory is typically the reason why an application receives a low-memory warning. Apple suggests that you don’t use more than 24 MB of graphics memory. For ...
Get iPhone Programming: The Big Nerd Ranch Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.