|
@@ -79,9 +79,9 @@ class ProductDetailView: BaseView {
|
|
|
tableView.backgroundColor = kf7f8faColor
|
|
|
tableView.dataSource = self
|
|
|
tableView.delegate = self
|
|
|
- tableView.estimatedRowHeight = 0.000001
|
|
|
- tableView.estimatedSectionFooterHeight = 0.000001
|
|
|
- tableView.estimatedSectionHeaderHeight = 0.000001
|
|
|
+ tableView.estimatedRowHeight = 100
|
|
|
+ tableView.estimatedSectionFooterHeight = 10
|
|
|
+ tableView.estimatedSectionHeaderHeight = 44
|
|
|
return tableView
|
|
|
}()
|
|
|
|
|
@@ -498,7 +498,7 @@ extension ProductDetailView : UITableViewDelegate, UITableViewDataSource {
|
|
|
func tableView(_ tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat {
|
|
|
switch section {
|
|
|
case 2,4,5,6:
|
|
|
- return UITableView.automaticDimension
|
|
|
+ return 44
|
|
|
default:
|
|
|
return 0
|
|
|
}
|