Your question is hard to understand. I try an answer here, and if it doesn’t satisfy your needs, please provide more code.
I believe you mix up a didLoad
and a didAppear
delegate method.
If you want to trigger code every time a view will be shown to the user, use the viewDidAppear
delegate-method.
viewDidLoad
is called only once, when the view is loaded to memory. If you use a navigationcontroller and segue back to the view (which is already loaded in memory), viewDidLoad will NOT be called again. But viewDidAppear
will
solved iOS First launch trouble