Use autorelease for questions related to deferring the release of a variable stored within an object until some time in the future to facilitate referencing it while avoid memory leaks
If I have this code, + (MyCustomClass*) myCustomClass { return [[[MyCustomClass alloc] init] autorelease]; } This code guarantees the returning object is autoreleased. …
objective-c clang automatic-ref-counting autoreleaseI have a doubt regarding weak property in ARC (auto reference counting) My understanding (correct me if I am wrong): …
objective-c automatic-ref-counting getter autorelease weak-references