I have a top level UIViewController
that contains a UITableView
. The top level UIViewController
instantiates a NavigationController
All you need to do is this (in your UIViewController that has a UITableView). You don't have to worry about what happens at cell-level at this point.
- (void)viewWillAppear:(BOOL)animated {
[super viewWillAppear:animated];
[self.tableView reloadData]; // to reload selected cell
}
Just add the code above to your controller, and you'll see that the right thing happens when you come back from your second view. The call to reloadData
tells the table view that it needs to refresh its cells from your model, and everything else follows nicely.