【iOS】tableView:viewForHeaderInSection: 方法未調用


今天遇到這個問題,即重寫的方法

- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section

沒有調用。

 

可能的原因:

1. 沒有設置 delegate

2. 沒有重寫方法

- (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section

 

雖然我的問題不是上述兩個,但也記下。

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM