Question

So far I have been removing observers (notifications or KVO) in the dealloc. Since dealloc is gone in ARC, what's the recommended way to do this?

Was it helpful?

Solution

-dealloc is not gone under ARC. The ivar-releasing and super-calling aspects are handled automatically, allowing you to omit it if that's all you were going to do, but you should still implement it for other things if it makes sense to do so.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top