In my tableView, I am using automatic row & section footer height . It looks good on iOS 10, but on iOS 11 the section footer overlaps the cell on landscape.
Is there some new iOS 11 property that I'm not setting that's causing this?
This is what it looks like running on iOS 10:
This is what it looks like running on iOS 11:
I have xib with a tableView constrained to the edges of the view. I'm setting row/footer/header height in IB:
Do you set your custom heights for header and footer?
Your table view delegate should implement this methods:
- (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section
- (CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section
which should return appropriate values.
If you return smaller values then your header and footer views have, then they may overlap.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.