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