tableView -- tips

Posted guangleijia

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了tableView -- tips相关的知识,希望对你有一定的参考价值。

1. 如果发现TableView的第一个sectionHeader不显示, 那么可以断定, 你没有用代理方法来设置 sectionHeader的高度!

  

1 #pragma mark - delegate
2 - (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section
3 {
4     return 200;
5 }

  如此设置, 保证你的sectionHeader,马上出现!

2. 

以上是关于tableView -- tips的主要内容,如果未能解决你的问题,请参考以下文章