找了好久沒有找到官方的方法意荤,在stackflow上有人給出了這樣的想法:
在將要顯示最后一個(gè)cell的時(shí)候泞辐,其實(shí)也就是reloaddata結(jié)束的時(shí)候陪拘,再進(jìn)行操作菜枷。
原文stackoverflow地址:
http://stackoverflow.com/questions/4163579/how-to-detect-the-end-of-loading-of-uitableview
-(void) tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath
{
if([indexPath row] == ((NSIndexPath*)[[tableView indexPathsForVisibleRows] lastObject]).row){
//end of loading
//for example [activityIndicator stopAnimating];
}
}