今天新升級(jí)了了Xcode9以后,編譯運(yùn)行原來(lái)的工程發(fā)現(xiàn)設(shè)置tableview section header高度無(wú)效,打了斷點(diǎn)測(cè)試后根本沒執(zhí)行該代理方法.
解決方法:
Xcode9默認(rèn)開啟了Self-Sizing,關(guān)閉Self-Sizing即可。
self.tableView.estimatedRowHeight = 0;
self.tableView.estimatedSectionHeaderHeight = 0;
self.tableView.estimatedSectionFooterHeight = 0;
遇到這個(gè)問題在此記錄一下,以上