heightforrow专题

UITableView的reloadData方法,不执行cellForRow方法,但是执行了numberOfRows和heightForRow方法

可能是因为cell上有图片的异步加载,只需将reload放在主线程就行了:dispatch_async(dispatch_get_main_queue(), ^{ [self.tableView reloadData]; });