IOS11以后,如何调整UITableView的section的高度
来源:互联网 发布:域名分析工具 编辑:程序博客网 时间:2024/05/29 11:34
IOS11以后,当我们的UITableView的风格设置为UITableViewStyleGrouped,如果我们要想调整
-(CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section
- (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section
这2个方法的时候,我们必须实现以下两个代理方法,
- (UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section { return [[UIView alloc] init];}
- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section { return [[UIView alloc] init];}
令其返回2个view来进行填充。
阅读全文
0 0
- IOS11以后,如何调整UITableView的section的高度
- UITableView 的一些效果 透明和section的高度
- 如何获取UITableView 每个section的Rect
- UITableView选择UITableViewStyleGrouped时 section的高度设置
- 如何调整seekbar的高度
- 如何调整seekbar的高度
- UITableview在iOS11中出现的问题
- 如何结合CoreData给UITableView的section填充数据
- 如何让UITableView的section headerView不悬停
- CComboBox如何调整下拉项的高度
- 如何调整 CComboBox 下拉列表的高度
- iOS11适配table的区头高度
- UITableview 的自适应高度
- section 和sectionview 的高度
- 调整ListView的高度
- tableViewHeaderView的高度调整
- UITableView 如何不动态计算返回的cell 的高度
- UITableView 如何不动态计算返回的cell 的高度
- 在eclipse中运行maven命令没有反应,console也不打印信息
- windows部署iBase4J、eclipse发布(亲测可用)
- linux下java Web 相关环境安装
- ALSA声卡驱动中的DAPM详解之二:widget-具备路径和电源管理信息的kcontrol
- React,动态交互式用户界面
- IOS11以后,如何调整UITableView的section的高度
- 七牛上传图片初探 开始上传 暂停上传 继续上传
- Java内存区域与内存溢出
- android自动弹出软键盘(输入键盘)
- 对KotlinArt项目,框架升级 2.0 ——> 3.0 的草稿。
- js中的date对象
- 代码书写规范(范本yii2.0)
- Java接口
- 深蓝的小秘密:友元