ARC follow-up drill
Starting from "explain ARC," the follow-ups keep coming. First: who inserts retain and release, and when?
Starting from "explain ARC," the follow-ups keep coming. First: who inserts retain and release, and when?
The compiler inserts the retain/release calls after analyzing ownership during SIL optimization; the runtime only moves the count up and down according to those calls. The optimization level changes where they're inserted, so deinit timing can differ between debug and release.
Memory and ARCMultiple choiceBasics
Which of the following statements about ARC and weak are correct? Select all that apply.
#arc #value-type
Memory and ARCShort answerIntro
In an iOS app written in Swift, how does ARC manage the lifetime of a class instance?
#arc #ownership
Memory and ARCShort answerIntro
What is ARC, and why do we need it?
#arc
Memory and ARCShort answerAdvanced
How far is it true that "using a struct means no ARC cost"?
#value-type