While developing apps in Xcode memory leaks are occurring. When I checked them in extended detail view they are showing different methods that are not related to implemented. How to exactly find out which object is leaking and where it is leaking memory.
When ARC is enabled we have to take care of memory leaks or not?
Even with
ARCmemory leaks can occur, it just inserts release and autorelease during compile time.1. You must check for leaks using
Build and analyzein XCode,shift+command+byou should be clearing those issues.2. After that you can start using the instruments by using profile option
command+i. This will point you to where the leak might be.This link will help you too http://soulwithmobiletechnology.blogspot.in/2011/04/how-to-check-memory-leaks-in-xcode-4.html
Edit: Added some screenshots to hopefully make it clear.
During profiling after selecting
leakschoose thecall treeoption and check the boxeshide system libraries,invert call treeandshow obj-c onlyas shown in image below.After double clicking the symbol name below you’ll get the line where it is leaking.

You’ll get something like this.