Finding And Fixing Leaks
Working in the XCode environment has its advantages. The ide is clean and easy to use, and on an adequate machine, the code completion and library access are great.
But in every project, comes the time to start really debugging and tracking down memory leaks.
Apple provides the Instruments toolset to help.
You can start the utility directly from XCode. In XCode 4, select Profile under the Product menu. This will build the app, and launch instruments attached to the app running on either simulator or device.
I picked the Leaks Instrument from the library, and the app starts recording automatically. Exercise the application, and Instruments will monitor looking for potential sources of memory leaks.
Matt Long provides a good tutorial, showing how to run instruments and what to expect. He goes into good detail.
Also, there is excellent information here on the iOS developers site: Tuning Applications.
Enjoy!
Programming,
XCode 