My application use UIImagePickerController for taking photos. It works well but one serious problem — memory crashes. The application crashes always after taking several photos, mostly around 4-6. Looked through the debug information, I found it occurs memory warning message frequently and crashes after entering didReceivedMemoryWaning twice. Viewing the memory use in Instrument (which is the performance tool integrated in xcode) , the memory in use increase about 18 MB, it’s really horrible. After a long time research, I got some solutions to improve it.
[阅读全文]Tags: iPhone, memory leak, UIImagePickerController