iphone popViewControllerAnimated后刷新原先的表格

摘自:http://www.cocoachina.com/bbs/read.php?tid-33152.html

 

a(tableview)pushviewcontrol到b,执行完c动作后[[self navigationController] popViewControllerAnimated:YES];
返回a,但表格数据未刷新,调试发现未执行- (UITableViewCell *)tableView:(UITableView *)tableView 
         cellForRowAtIndexPath:(NSIndexPath *)indexPath 

请问有什么办法在popViewControllerAnimated后刷新原先的表格?
 

 

1.

在-viewWillAppear里面吧刷新代码写进去。 

2.

[tableview reloadData]; 

posted on 2011-11-07 23:09  wtq  阅读(1446)  评论(0编辑  收藏  举报