How would I go about reloading a view controller's table view after the page curl on another view controller is closed.
I have a tableview on viewController1 with a transistion using a page curl to viewController2.
viewController1 has a tableView that needs to be reloaded after the page curl is closed.
thanks for any help
Ok,
in your viewControllers1 register a notification in viewDidLoad:
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(handleNotification:) name:@"MyNotification" object:nil];
and add the method:
- (void)handleNotification:(NSNotification*)note {
[tableView reloadData];
}
in your viewController2 post the notification when you will go to viewController1 or when ever you want to reload the table:
[[NSNotificationCenter defaultCenter] postNotificationName:@"MyNotification" object:self];