2012-01-03 23 views
1

什么是最好的方式让UITableViewController刷新其旋转的桌面视图?我很惊讶UITableViewController没有自动处理这个问题。获取UITableViewController在旋转时刷新其tableview的最佳方式是什么?

+1

如果设备旋转,UITableViewController将从可见Cell中调用layoutSubview方法。你有没有实现shouldAutorotateToInterfaceOrientation? – CarlJ 2012-01-03 16:57:46

+0

使用'reloadData'属性。 – Legolas 2012-01-03 17:31:00

回答

2
-(void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation 
{ 
    [self.tableView reloadData];  
} 
相关问题