Should viewDidUnload call super viewDidUnload or dealloc?

The [super viewDidUnload] template is created, but the code samples show:

 [super dealloc] 

Is there any difference?

+4
source share
1 answer

You must call the superclass implementation -viewDidUnload

Never call [super dealloc] directly, except for your own -dealloc method

 - (void) viewDidUnload { ... [super viewDidUnload]; } 

and

 - (void) dealloc { //clean up here [super dealloc]; } 
+20
source

Source: https://habr.com/ru/post/1335704/


All Articles