I have a problem. I am working on an app which is tab bar based app. In this app, we call [self.view addSubview:newVC.view]
when we want to navigate to a new view. newVC is the view controller of the new view that we want to display. Also we use [self.view removeFromSuperview]
when we want to go back to previous view.
So in other words, there is no navigation controller. Now problem is that I want to update the previous view. Since we are using [self.view removeFromSuperview]
, viewDidAppear
of the previous view is not get called and so we have no way of refreshing that view.
I know the approach that we used has flaw but since its a large scale app and changing it to implement navigation controller with take lot of time so I need you to please help me find the solution of this problem. How can I call the viewDidLoad
or viewDidAppear
or the previous view on calling [self.view removeFromSuperview]
from its subview?