MRC and autorelease
Before ARC, Objective-C code called retain, release, and autorelease directly. What did each one do, and what did ARC change?
Before ARC, Objective-C code called retain, release, and autorelease directly. What did each one do, and what did ARC change?
Under MRC the developer paired retain and release by the ownership rules and used autorelease to defer a release until the pool drained. Under ARC the compiler inserts those calls instead of you writing them; the runtime model is unchanged.
Memory and ARCShort answerIntro
What is ARC, and why do we need it?
#retain #release
Memory and ARCMultiple choiceBasics
This code spikes memory and gets the app killed. What's the most appropriate fix? …
#autoreleasepool
Memory and ARCMultiple choiceBasics
In Objective-C, why do you use copy instead of strong for an NSString property, as in…
#objective-c
Memory and ARCShort answerAdvanced
A for loop that runs fine on up to 5,000 records crashes after a memory warning above…
#autoreleasepool