Is there any different between these two dealloc method?
Posted
by Tattat
on Stack Overflow
See other posts from Stack Overflow
or by Tattat
Published on 2010-05-09T01:56:14Z
Indexed on
2010/05/09
1:58 UTC
Read the original article
Hit count: 267
objective-c
|objects
First one:
- (void)dealloc {
[super dealloc];
[AboutButton release];
}
Second one:
- (void)dealloc {
[AboutButton release];
[super dealloc];
}
Both methods are delloc, first run the super first, the other run it later, which one is correct or there is no diff between two. thz.
© Stack Overflow or respective owner