tableView:viewForHeaderInSection: 默认值? [英] tableView:viewForHeaderInSection: default value?

查看:51
本文介绍了tableView:viewForHeaderInSection: 默认值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想要一个自定义部分标题,其余部分是默认标题.

I want to have a single custom section header, with the rest being the default header.

- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section {
     return ???;
}

我返回什么只是给出默认的标题视图?

What do I return to just give the default header view?

推荐答案

默认标题视图是 nil,因为根本没有标题!

The default header view is nil, for no header at all!

这篇关于tableView:viewForHeaderInSection: 默认值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆