开发者

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];
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜