iphone, I'm returing from a pushed view, which event do I reload my table data in?
I'm returning to my table view after selecting a new date range, I now need to reload the data in my table, which event do I do this in ?
Heres how I'm pushing my date selection sreen.
MyViewController *nextController = [[[MyViewController alloc] initWithNibName:@"MyView" bundle:nil] autorelease];
MyAppDelegate *delegate = (开发者_运维知识库MyAppDelegate *)[[UIApplication sharedApplication] delegate];
[delegate.MyNavController pushViewController:nextController animated:YES];
to go back to the last view you need:
[self.navigationController popViewControllerAnimated:YES];
and then in viewWillAppear:(BOOL)animated
of the tableviewcontroller you want to do:
[self.tableView reloadData];
精彩评论