Just curious if any of the default functions get called more than once.
Do the UIViewController default functions only get called once?
What do you mean by the default functions?
viewDidLoad is only called once (when view needs to loaded).
viewDidAppear is not called usually when you return from a navigation or when the display mode is Automatic…
Could you tell precisely where and why that is a concern ?
viewDidAppear is not called usually when you return from a navigation or when the display mode is Automatic…
Could you tell precisely where and why that is a concern ?
And viewDidLayout, for instance, will be called multiple times.
To check, just add a statement as:
in each API func you want to track…
To check, just add a statement as:
Code Block print(#function)
in each API func you want to track…
viewDidLoad can be called more than once, though this is uncommon. When a view controller's view is nil, the controller will construct the view, and then call viewDidLoad. As an example of when this can happen more than one, imagine that a view controller nil'ed its view in response to memory warnings. The next time the view is needed, this process will kick off again to create the view and notify subclasses overriding this method.