The template seems to create [super viewDidUnload]
but code samples show:
[super dealloc]
Is there a difference?
You should only invoke the superclass' implementation of -viewDidUnload
Never invoke [super dealloc]
directly, except in your own -dealloc
method
- (void) viewDidUnload {
...
[super viewDidUnload];
}
And
- (void) dealloc {
//clean up here
[super dealloc];
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With