What ways are there to deal with memory issues on the iPhone?
Is it possible to ask how much memory is available before jumping into a memory intensive section of code?
(or perhaps Apple would just say that if you have to use so much memory you are on the wrong platform?)
UIApplicationDelegate’s
applicationDidReceiveMemoryWarning:will let you know if you’re using too much memory. If you want to check before a memory intensive operation, here’s a function that gets the available free memory in bytes on iOS: