I have an app which I want to recover from being killed while running in the background.
What seems to happen is that if the app is killed in the background due to memory pressure, on re-entering the app the app returns to the root view controller.
It appears from testing that neither viewWillAppear or viewDidLoad are called on the root view controller in this case, therefore I cannot execute any code this way on resume.
My question is which methods are called in the above scenario and, ultimately, how can I send a message to the root view controller to handle the case where the app is restarting after having been killed in the background ?