I wrote a tab application where on the first tab I have a tabular view with a navigation controller.
A tableviewController is clicked every time I select a row. This is a remote directory on the server, for example. / Dir 1
When I select the root directory of differnt eg / dir2 from the second tab, then when I go to the first tab, I want to pull all the controllers from the stack and reload the table view with the contents of / dir 2. So this is what I do
- (void)viewWillAppear:(BOOL)animated
{
[[self navigationController] popToRootViewControllerAnimated:NO];
[self initFirstLevel];
[self.tableView reloadData];
}
What happens when tableviewControllers exit the stack and return to rootViewController, but the contents of / dir 2 are not loaded into the table view.
source
share