objective c - super dealloc on ARC subclasses -
in arc i'm aware not call [super dealloc] in overrides of -dealloc, typically remove observers , timers in there without doing so. however, if subclass view made releases observation info in -dealloc without calling [super dealloc] in subclass' implementation of method, super implementation called automatically release observation info handled superclass, or leak?
the superclass' implementation of dealloc automatically called (as far know, compiler inserts statement [super dealloc] you).
update
here reference:
custom dealloc methods in arc not require call [super dealloc] (it results in compiler error). chaining super automated , enforced compiler. transitioning arc release notes

Comments
Post a Comment