码迷,mamicode.com
首页 > 移动开发 > 详细

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

时间:2016-07-14 21:14:28      阅读:366      评论:0      收藏:0      [点我收藏+]

标签:

今天遇到这个问题,即重写的方法

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

没有调用。

 

可能的原因:

1. 没有设置 delegate

2. 没有重写方法

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

 

虽然我的问题不是上述两个,但也记下。

 

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

标签:

原文地址:http://www.cnblogs.com/jaxer/p/5671558.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!