当前位置:网站首页>【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;
边栏推荐
- DOM 知识点总结
- 数莓派 4怎么样?可能的玩法有哪些?
- QT learning 05 introduction to QT creator project
- modelsim的TCL脚本的define incdir命令解析
- Zhongang Mining: Fluorite helps the construction and development of lithium battery in fluorine industry
- 西门子低代码 9.14版本: 满足不同需求
- Et la tarte aux framboises 4? Quels sont les jeux possibles?
- 项目一:部署 LAMP ecshop电商平台
- ThinkPad VMware installation virtual machine: this host supports Intel VT-x, but Intel VT-x is disabled (problem resolution)
- Will the flush SQL CDC parallelism affect the order? Generally, only 1 can be set for data synchronization.
猜你喜欢

AI chief architect 9- huxiaoguang, propeller model library and industry application

这次的PMP考试(6月25日),有人欢喜有人忧,原因就在这...

MySQL functions and constraints

Andorid source build/envsetup.sh 该知道的细节

Mysql:sql overview and database system introduction | dark horse programmer

Koa2 learning and using

QT learning 02 GUI program example analysis

數莓派 4怎麼樣?可能的玩法有哪些?

数莓派 4怎么样?可能的玩法有哪些?

Andorid source build/envsetup. SH details to know
随机推荐
Vulnhub靶机-MoriartyCorp
Sword finger offer 15 Number of 1 in binary
MySQL:SQL概述及数据库系统介绍 | 黑马程序员
Color space conversion in video tonemapping (HDR to SDR) (bt2020 to bt709, YCbCr, YUV and RGB)
AI chief architect 9- huxiaoguang, propeller model library and industry application
Leetcode (680) -- verifying palindrome string II
Embedded development: Hardware in the loop testing
JS绘制极坐标颜色渐变
Sword finger offer 14- ii Cutting rope II
多数元素II[求众数类之摩尔投票法]
6.28 problem solving
[Shangshui Shuo series] day 8
Cacti maximum monitoring number test
6.28日刷题题解
Getting started with qpainter: drawing the chess interface
Set up enterprise NTP time server
Which securities company is good for opening a mobile account? In addition, is it safe to open a mobile account?
How to write controller layer code gracefully?
HTAP x cloud native: tidb accelerates the release of data value and realizes data agility
QT learning 05 introduction to QT creator project