objective c - viewWillAppear getting called before viewDidDisappear of another controller gets finished -


I have 2 view controllers, VC-1, VC-2 I have VC -2 VC through the navigation stack Displayed on -1 VC-1 has webview of text view and VC-2. Now I have to update the contents of VC-1 as the VC-2 pop-off is off, so I am using viewDid to set the contents of VC-2 I am using the method to use for VC-1's view of the scene and for updating the text view (content of VC-1). But before seeing the DIDDIPER ends, the VC-1's wal-apipers are executed and the contents are not updated. I have checked it by NSLogging ViewDidDisappear some files are read stuff, so I think that is causing the problem. How can I make Villapier (VC-1) to call after DDIDAPER (VC-2) is over?

-viewWillAppear: is said before coming to your visual screen . -viewDidDisappear: is said to have gone completely on your watch screen. Therefore, on any type of animated transition, e.g. A navigation stack pop / push, coming VC's -viewWillAppear: can be called before the farewell VC's -viewDidDisappear: called . That's perfect.

You should take the task that you are doing in -viewDidDisappear: and move it to -viewWillDisappear: instead.

Comments