gpt4 book ai didi

ios - 删除 iOS8 中 tableHeaderView 下方的填充

转载 作者:行者123 更新时间:2023-11-28 10:25:00 25 4
gpt4 key购买 nike

我在界面生成器中为我的 tableHeaderView 添加了一个标签。但是,我想减少标题和第一个表格 View 之间的填充。 (例如,在“第 1 轮”和“第 1 场比赛”之间)。这可能吗?

header

最佳答案

使用这个方法

- (CGFloat) tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section
{
if (section==0)
return 50.0f;
else
return 0.0f;
}

关于ios - 删除 iOS8 中 tableHeaderView 下方的填充,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28427748/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com