2010-10-12 36 views
0

我選擇新的日期範圍後返回到我的表格視圖,我現在需要重新加載我的表格中的數據,我應該怎麼做?iphone,我從推送的視圖迴盪,哪個事件我重新加載我的表數據?

繼承人我如何推動我的日期選擇屏幕。

MyViewController *nextController = [[[MyViewController alloc] initWithNibName:@"MyView" bundle:nil] autorelease]; 
MyAppDelegate *delegate = (MyAppDelegate *)[[UIApplication sharedApplication] delegate]; 
[delegate.MyNavController pushViewController:nextController animated:YES]; 

回答

3

回到你所需要的最後一個觀點:

[self.navigationController popViewControllerAnimated:YES]; 

,然後在你想要做的tableviewcontroller的viewWillAppear:(BOOL)animated

[self.tableView reloadData]; 
+0

你確定嗎?把一個NSLog()放在那裏只是爲了讓你完全確定。這可能是因爲你沒有正確存儲數據或其他東西。 – 2010-10-12 11:19:25

相關問題