简单粗暴直接上代码刷新刷新tableView的时候发现会闪屏,iOS11后的适配高度设置一下,简单粗暴直接上代码刷新
self.tableView.estimatedRowHeight = 0;
self.tableView.estimatedSectionFooterHeight = 0;
self.tableView.estimatedSectionHeaderHeight = 0;
[UIView performWithoutAnimation:^{
NSIndexSet *indexSet=[[NSIndexSet alloc]initWithIndex:0];
[self.tableView reloadSections:indexSet withRowAnimation:UITableViewRowAnimationNone];
}];