問(wèn)題: ?[tableView reloadData]后界面會(huì)上移.
問(wèn)題原因: ? ? tableView的屬性estimatedRowHeight默認(rèn)=UITableViewAutomaticDimension. 系統(tǒng)自動(dòng)計(jì)算高度會(huì)導(dǎo)致cell上移.
解決方法: ??
?? ? ? ?tableView.estimatedRowHeight=0;
? ? ? ? tableView.estimatedSectionFooterHeight = 0;
? ? ? ? tableView.estimatedSectionHeaderHeight = 0;