当前位置:网站首页>【UITableView】坑一:tableView:heightForHeaderInSection:方法不执行
【UITableView】坑一:tableView:heightForHeaderInSection:方法不执行
2022-06-30 00:02:00 【allanGold】
iOS11后
tableView:heightForHeaderInSection:代理方法方法不执行
- (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section {
return 10;
}
- (CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section {
return 10;
}
设置下面两个属性值后,上面两个方法才能响应
_tableView.sectionHeaderHeight = 0.01;
_tableView.sectionFooterHeight = 0.01;
边栏推荐
- Web APIs environment object - dark horse programmer
- Divisor
- Viewing splitchunks code segmentation from MPX resource construction optimization
- Sword finger offer 14- I. cut rope
- History of deep learning
- solo 博客皮肤导入 skins 文件夹后出现 500 错误
- 项目一:部署 LAMP ecshop电商平台
- Vulnhub靶机-MoriartyCorp
- Solr basic operation 6
- 基于zfoo开发项目的一些规范
猜你喜欢

Halcon practical: design idea of solder joint detection

Basic operations such as MySQL startup under Windows platform

Golang6 reflection

Simple understanding of B tree and b+ tree

FPGA Development (2) -- IIC communication
![Clone undirected graph [bfs accesses each edge but not only nodes]](/img/34/2a1b737b6095293f868ec6aec0ceeb.png)
Clone undirected graph [bfs accesses each edge but not only nodes]

Exploration and Practice on the future direction of byte cloud database

QT learning 07 coordinate system in QT

Digital collection of cultural relics, opening a new way of cultural inheritance

數莓派 4怎麼樣?可能的玩法有哪些?
随机推荐
6.29日刷题题解
Andorid source build/envsetup. SH details to know
请指教同花顺软件究竟是什么?究竟网上开户是否安全么?
Koa2 learning and using
Zhongkang holdings opens the offering: it plans to raise HK $395million net, and it is expected to be listed on July 12
QT learning 02 GUI program example analysis
How to write controller layer code gracefully?
label问题排查:打不开标注好的图像
Basic operations such as MySQL startup under Windows platform
shell-运算符
Exploration and Practice on the future direction of byte cloud database
solo 博客皮肤导入 skins 文件夹后出现 500 错误
Solr基础操作15
西门子低代码平台通过Database Connector 连接Mysql 实现增删改查
New titanium cloud service won the "2022 love analysis · panoramic report of it operation and maintenance manufacturers" cloud management platform CMP representative manufacturer
Et la tarte aux framboises 4? Quels sont les jeux possibles?
视频ToneMapping(HDR转SDR)中的颜色空间转换问题(BT2020转BT709,YCbCr、YUV和RGB)
8软件工程环境
由GlideException: Failed DecodePath{DirectByteBuffer->GifDrawable->Drawable}引起的刨根问底
Label Troubleshooting: unable to open the marked image