Is there a way to force viewdidload
on poptorootviewcontroller
?
I've got an app in which in appdelegate
I create a NavigationController
and in the RootViewController
there's an animation which calls, through locationdidupdate
delegate method, many requests to server and then, it pushes another viewcontroller
and then the app works normally.
The problem is that during the app there could be the possibility to poptorootviewcontroller
, but if I do it, it doesn't start anything, starting from the animation and going on with the requests, so the app doesn't work properly.
My question is:
How can I force viewdidload
through the command poptorootviewcontroller
?
I tried with viewwillappear
, but the flow doesn't work properly.
Any suggestion?
Thanks!