有时候reloadData
方法UITableView
不能正常工作,即意味着当我像[tableView reloadData]
那样写时,它有时会调用数据源方法,有时候不会。UITableview重新加载问题iOS
什么可能是问题是,任何人都可以请给我答案。
这里是我的代码:
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
// Return YES for supported orientations.
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad){
[self performSelector:@selector(changeSegmentControllerFrame) withObject:nil afterDelay:0.0001];
[m_kwikiTable reloadData];
return YES; }
else
return (interfaceOrientation == UIInterfaceOrientationPortrait);
}
发布您的代码将有助于了解您的问题和代码... – 2012-01-31 07:05:35
请张贴一些代码... – 2012-01-31 07:05:56
这里我的问题是当我导航到一个视图,回到第一个视图比我的tableview委托方法被调用,但数据源方法不叫 – user1179681 2012-01-31 07:44:34