In [UIViewController's documentation](https://developer.apple.com/documentation/uikit/uiviewcontroller), Apple suggests calling the super at some point in the implementation of viewWillAppear, viewDidAppear, viewWillDisappear, viewDidDisappear, etc... For example, the discussion on viewDidDisappear is:

> 
> You can override this method to perform additional tasks associated
>  with dismissing or hiding the view. If you override this method, you
>  must **call super at some point in your implementation**.
> 
> 
> 

My question is does it matter **when** the super method is called and, if so, what is the correct time to call it? Should super be called as the first line of the method, the last line, or somewhere in the middle depending on your particular needs?