Reputation: 59
I want simply to refresh my tableView (on the iPhone) when I click on the related button in the tabBar...
So, I think this has to be done this way :
[self.tableView reloadData];
Right ? And done in the
(void)tabBarController:(UITabBarController *)tabBarController didSelectViewController:(UIViewController *)viewController
But I don't know how can I send the message reloadData to the tableView from the tabBar controller... Could you help me please ?
Upvotes: 4
Views: 5034
Reputation: 22413
In your UITableViewController
class, implement the viewWillAppear
method and call reloadData
from there.
Upvotes: 6