titleForHeaderInSection没有被调用

时间:2016-12-13 16:28:13

标签: ios objective-c uitableview

我已经将类创建为表视图的dataSourcedelegate。当细胞出现正常时,我发现这种方法:

- (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section

没有被调用。

这是什么原因?

我能想到的只是验证我没有实施:

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

我执行DID:

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

是否有其他原因不会调用该方法?

0 个答案:

没有答案
相关问题