Understanding autorelease object again

Usually the return value is returned by the object function autorelease objects (including direct and by the value returned by the return pointer to a pointer) , the MRC needs to retain its own object . When autorelease object will be operated in a current drain autoreleasepool release message is sent. But the resulting object to function init, new, copy, mutableCopy the beginning of the default reference count is 1 , so when you create an object using these methods at MRC do not need to retain for himself the object.

Guess you like

Origin www.cnblogs.com/yibinpan/p/12164314.html