[英]Increasing space between Table View header and cell on storyboared
我正在将应用程序迁移到iOS 7,我注意到,表视图标题和单元格之间的空间很小。
我认为这是iOS 7的正常行为? 对。
是的,这是正常行为。
是否有增加使用故事板设计的静态UITableView中的空间的方法?
在StoryBoard中,选择tableview,然后在Attributes Inspector下更改值。
对于所有没有发现@Virus答案有用的文件,如果您拥有该部分的动态标题高度,请遵循此方法
//This method returns the height of a header at a specific section
-(CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section
{
//For example you define heights for these sections
switch (section)
{
case 0:
return 12.0f;
break;
case 1:
return 23.0f;
break;
case 2:
return 56.0f;
break;
case 3:
return 33.0f;
break;
default:
return 25.0f;
break;
}
}
希望能帮助到你
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.