UITableView出現(xiàn)的問題
- heightForHeaderInSection/heightForFooterInSection函數(shù)不被調(diào)用
- viewForHeaderInSection函數(shù)返回nil的時候仍然存在seciton 頭部
解決方案
- 使用 heightForHeaderInSection/heightForFooterInSection函數(shù)的時候必須同時使用viewForHeaderInSection/viewForFooterInSection(返回nil也是可以的)方法
- 參照第一個問題览妖,調(diào)用heightForHeaderInSection/heightForFooterInSection方法并且返回0即可