当前位置:网站首页>Grouped uitableview has 20px of extra padding at the bottom
Grouped uitableview has 20px of extra padding at the bottom
2022-06-25 06:36:00 【javail】
problem :
Grouped table views seem to have extra padding on the bottom in iOS 6 (iOS 5 does not have it), but I can't find any documentation that suggests this is correct / expected behavior. The group table view appears to be in iOS 6 There is extra padding at the bottom of the (iOS 5 No, ), But I can't find any indication that this is true / Documentation of expected behavior .
This affects the example projects as well, for instance the SimpleTableView
project in the TableViewSuite
example. This also affects the sample project , for example TableViewSuite
In the example SimpleTableView
project .I think I had to change the style in the AppDelegate
to 'grouped', and updated the SDK to iOS 6, but no other changes have been made to the project. I think I must AppDelegate
The style of is changed to “ grouping ”, And will SDK Updated to iOS 6, But no other changes were made to the project .
Investigating revealed that there are 10px
reserved for header and footer views, plus some 20px
that can't be accounted for. The survey shows that , Yes 10px
Header and footer reservations , Add some more 20px
Cannot occupy .There are no actual header or footer views ( tableHeaderView
and tableFooterView
are nil
, and implementing and returning nil
for eg viewForFooterInSection
does nothing). There is no actual header or footer view ( tableHeaderView
and tableFooterView
yes nil
, And for example viewForFooterInSection
Implement and return nil
Don't do anything? ).I cannot find any '20' value on the tableView itself, though I may have missed something of course. I am here tableView Can't find any on itself “20” value , Although of course I may have missed something .
Adding a zero-size view for the footer does nothing, but adding a 1px
square view causes the extra padding to vanish. Adding a zero size view to the footer has no effect , But add one 1px
The square view causes the extra padding to disappear .eg: for example :
tableView.tableFooterView = [[UIView alloc] initWithFrame:CGRectMake(0,0,1,1)];
It does take up 1px
of height still, so the bottom padding is now 11px
, but this is far less noticeable than 20. And now setting the sectionFooterHeight
to 0 will result in only 1px
of bottom-space. It takes 1px
The height is still , So the bottom fill is now 11px
, But this is better than 20 Far less obvious , The current settings sectionFooterHeight
by 0 Will result in only 1px
Bottom space .
My question is: what? My question is : what ?And how can I completely remove it? How can I delete it completely ?This isn't anything mission-critical, but it is extremely weird, undesirable, and as far as I can tell it's undocumented. This is not any critical task , But it's very strange , Not an option , And as far as I know it has no record .
Please note - its copy past question from apple dev forum. Please note that - It replicates past problems from the Apple Development Forum .But I have exactly the same issue and I don't understand how to solve it too. But I have exactly the same problem , I don't know how to solve it .
Solution :
Reference resources : https://stackoom.com/en/question/xcnC边栏推荐
- At the age of 26, I was transferred to software testing with zero foundation. Now I have successfully entered the job with a monthly salary of 12K. However, no one understands my bitterness
- Copying DNA
- Cannot activate inspection type when SAP retail uses transaction code mm41 to create commodity master data?
- [road of system analyst] collection of wrong questions in the chapters of Applied Mathematics and economic management
- Zhinai's database
- Preliminary practice of niuke.com (summary)
- Go language library management restful API development practice
- VMware virtual machine prompt: the virtual device ide1:0 cannot be connected because there is no corresponding device on the host.
- What is the slice flag bit
- How to create a handy vs Code?
猜你喜欢
Cannot activate inspection type when SAP retail uses transaction code mm41 to create commodity master data?
Single lithium battery 3.7V power supply 2x12w stereo boost audio power amplifier IC combination solution
How to realize the stable output of 3.3v/3.6v (1.2-5v) voltage of lithium battery by using the voltage rise and fall chip cs5517
Introduction to sap ui5 tools
At the age of 26, I was transferred to software testing with zero foundation. Now I have successfully entered the job with a monthly salary of 12K. However, no one understands my bitterness
Face++ realizes face detection by flow
[kicad image] download and installation
2022 AI trend 8 forecast!
[Suanli network] technological innovation of Suanli Network -- Key Technologies of green and security
How to use asemi FET 7n80 and how to use 7n80
随机推荐
Sleep quality today 67 points
十大券商公司哪个佣金最低,最安全可靠?有知道的吗
How do I turn off word wrap in iterm2- How to turn off word wrap in iTerm2?
After five years of software testing in ByteDance, I was dismissed in December to remind my brother of paddling
Preliminary practice of niuke.com (summary)
STL map的用法
Understand what MSS is
Face++ realizes face detection by flow
Optimal Parking
Research Report on investment share and application prospect of 1,3-propanediol (PDO) industry in the world and China 2022
Understand what ICMP Protocol is
Mount command - file system mount
Global and Chinese benzoic acid market competition strategy and demand scale forecast report 2022
[core content and derivation] the mystery of human memory system may be just like this
@Principle of preauthorize permission control
Analysis report on investment and financing status and operation benefits of global and Chinese dental industry (2022 Edition)
北京网上开股票账户安全吗?
A + B Again
How to realize hierarchical management of application and hardware in embedded projects
Understand what MTU is