You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current solution: iOS 15 estimatedRowHeight set a larger height
if your UI cell's height may be 80 px
your estimatedRowHeight must set > 80
but the contentSize.height is not Accurate height
**
setData:
tableView.reloadData()
tableView.layoutIfNeeded()
tableView.snp.updateConstraints { make in
make.height.equalTo(tableView.contentSize.height)
}
setUI:
contentView.addSubview(tableView)
tableView.snp.makeConstraints { make in
make.top.left.right.equalToSuperview()
make.height.equalTo(0)
make.bottom.equalToSuperview().priority(.low)
}
the code in iOS 15 don't work
The text was updated successfully, but these errors were encountered:
Aviicii
changed the title
AtableView in ACell, BtableView in BCell, they are height don't fix, if only tableView in Cell is no problem
iOS 15: AtableView in ACell, BtableView in BCell, they are height don't fix, if only tableView in Cell is no problem
Oct 14, 2021
Aviicii
changed the title
iOS 15: AtableView in ACell, BtableView in BCell, they are height don't fix, if only tableView in Cell is no problem
iOS 15: AtableView in ACell, BtableView in BCell, they are height don't fix, if only tableView in Cell and before iOS 14 is no problem
Oct 14, 2021
Aviicii
changed the title
iOS 15: AtableView in ACell, BtableView in BCell, they are height don't fix, if only tableView in Cell and before iOS 14 is no problem
iOS 15: tableView in Cell,tableView.contentSize.height don't fix, before iOS 14 is no problem
Oct 21, 2021
Hi, this is a new feature of iOS15, you can set sectionHeaderTopPadding to 0 to avoid this happen, or add UITableView.appearance.sectionHeaderTopPadding = 0 as a common solution for your project.
Hi, this is a new feature of iOS15, you can set sectionHeaderTopPadding to 0 to avoid this happen, or add UITableView.appearance.sectionHeaderTopPadding = 0 as a common solution for your project.
**
**
setData:
setUI:
the code in iOS 15 don't work
The text was updated successfully, but these errors were encountered: