I've seen implementations of the UIViewController life cycle methods, where the super method was called at the beginning, like this:
override func viewDidLoad() {
super.viewDidLoad()
// Do stuff after super call.
}
But I have also seen this:
override func viewDidDisappear(_ animated: Bool) {
// Do stuff before super call.
super.viewDidDisappear(animated)
}
When should super
be called at the end?