【发布时间】:2012-10-30 14:41:17
【问题描述】:
我有一个带有一些委托方法的 UITableView。在第一次加载期间一切正常,但在旋转期间我看到方法 cellForRowAtIndexPath 不记得了。为什么? 我的委托方法是:
-(NSInteger)tableView:(UITableView *)tableView
numberOfRowsInSection:(NSInteger)section{
//.....
}
-(CGFloat) tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{
//......
}
- (UITableViewCell *)tableView:(UITableView *)aTableView
cellForRowAtIndexPath:(NSIndexPath *)indexPath{
//...This method is not called during the rotation of the device...
}
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
//.......
}
【问题讨论】:
标签: ios uitableview delegates