ARC Gotcha: Unexpectedly Short Lifetimes

Mark Dalrymple (via Matt Drance): ARC variables are released as soon as the optimizer decides that they are no longer referenced, so the compiler is free to release uicolor after fetching the CGColor. Current compiler implementations do seem to wait until the end of scope, but that’s not guaranteed. The result is that it’s trickier … Continue reading ARC Gotcha: Unexpectedly Short Lifetimes