Anonymous
Memory management in iOS is done when any object is created is retain count get increase by 1.
and once it get release i.e object is no longer used it retain count get decrease by 1. or move to 0.
Retain count increase by +1 when reference copy of given object is create or object start taking more memory.
ARC = Automatic reference counting. Xcode have introduce this which automatically count the memory and free up memory i.e decrease reference counting once the object is no longer used.
before ARC retain and release keyword is used to retain the object into the memory and release to free up the memory.
Advantage ARC offers -> manually tracking the reference counting and releasing object from memory.
ARC check compile time that is object is required any more or not. if not it will release memory