如何设置不同组section的的头部高度?tableView heightForHeaderInSection
2015-06-11 13:44
681 查看
- (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section
{
//获取indexPath
NSIndexPath *indexPath = [[NSIndexPath alloc]initWithIndex:section];
if (0 == indexPath.section) {//第一组
return 20;
}else
return 15;
}
{
//获取indexPath
NSIndexPath *indexPath = [[NSIndexPath alloc]initWithIndex:section];
if (0 == indexPath.section) {//第一组
return 20;
}else
return 15;
}
相关文章推荐
- 微信 和 支付宝 公众服务号开发者文档
- Yosemite系统怎么录制 iOS8设备屏幕
- vim 文件保存退出 文件相关操作汇总
- Git注意事项
- Android Fragment内嵌Fragment页面不刷新数据问题
- mysql高级查询
- 第六节:事件处理
- JPA 注解
- 微信公众平台分享
- Android快速开发之appBase——(5).BasePresenter的使用
- EasyUI1.11.1 出现错误: TypeError: _2ad is undefined if (_2ad.onClose) {
- 7张图告诉你成功者与失败者的行为差别
- Qt的学习
- JQUERY动态绘制表格,实现动态添加一行,删除一行
- 各大浏览器 CSS3 和 HTML5 兼容速查表
- Flarum 用到的前端 javascript 库
- android在线更新镜像服务器
- 为什么科技巨头们纷纷更换 Logo?
- opencv中的一些陷阱 坑死我了~~~~(>_<)~~~~
- hdu2852 KiKi's K-Number