Search code examples
iosios7ios8automatic-ref-countingdealloc

Does dealloc still get called?


For my iOS 7 app, just want to confirm:

  1. Does dealloc still get called?
  2. Does it have something to do with whether ARC is enabled or not?

Solution

  • Yes, dealloc is called when an object is deallocated, regardless of whether you are using ARC.

    Note however, when you use ARC, you do not need to (in fact you cannot) call [super dealloc] from your implementation of dealloc, as ARC does this automatically.