這里的footer容易混淆
1.tableFooterView是整個tableview的尾視圖,官方文檔明確給出解釋?:accessory view below content. default is nil. not to be confused with section footer,這里默認是沒有的,而且提示我們不要和section 的footer 混淆.
2.section的footer是相對于單個分區(qū)來設置的.如需設置
兩個相關(guān)的代理方法記得實現(xiàn)
(1).viewForFooterInSection:view
(2).heightForFooterInSection:高度 如果在foot上面有交互不響應,注意下此方法是否實現(xiàn),一般不需要時 ,我們設置很小的高度 0.00001f.不影響UI.
對于header同理