Commit d23a19d6 authored by Steven杜宇's avatar Steven杜宇

// UI走查

parent 51554fef
...@@ -62,8 +62,6 @@ class YHCertificateUploadContentListVC: YHBaseViewController { ...@@ -62,8 +62,6 @@ class YHCertificateUploadContentListVC: YHBaseViewController {
tableView.contentInsetAdjustmentBehavior = .never tableView.contentInsetAdjustmentBehavior = .never
} }
tableView.showsVerticalScrollIndicator = false tableView.showsVerticalScrollIndicator = false
tableView.estimatedSectionHeaderHeight = 1.0
tableView.estimatedSectionFooterHeight = 1.0
tableView.backgroundColor = .white tableView.backgroundColor = .white
tableView.separatorStyle = .none tableView.separatorStyle = .none
tableView.delegate = self tableView.delegate = self
...@@ -233,7 +231,7 @@ extension YHCertificateUploadContentListVC: UITableViewDelegate, UITableViewData ...@@ -233,7 +231,7 @@ extension YHCertificateUploadContentListVC: UITableViewDelegate, UITableViewData
if indexPath.section == 0 { if indexPath.section == 0 {
let cell = tableView.dequeueReusableCell(withIdentifier: YHCertificateTemplateCell.cellReuseIdentifier, for: indexPath) as! YHCertificateTemplateCell let cell = tableView.dequeueReusableCell(withIdentifier: YHCertificateTemplateCell.cellReuseIdentifier, for: indexPath) as! YHCertificateTemplateCell
cell.update(bottomMargin: 20) cell.update(bottomMargin: 15)
if 0 <= indexPath.row && indexPath.row < templateArr.count { if 0 <= indexPath.row && indexPath.row < templateArr.count {
cell.templatePath = templateArr[indexPath.row] cell.templatePath = templateArr[indexPath.row]
} }
...@@ -366,7 +364,7 @@ extension YHCertificateUploadContentListVC: UITableViewDelegate, UITableViewData ...@@ -366,7 +364,7 @@ extension YHCertificateUploadContentListVC: UITableViewDelegate, UITableViewData
make.top.equalTo(titlelabel.snp.bottom).offset(5) make.top.equalTo(titlelabel.snp.bottom).offset(5)
make.left.equalToSuperview().offset(20) make.left.equalToSuperview().offset(20)
make.right.equalToSuperview().offset(-20) make.right.equalToSuperview().offset(-20)
make.bottom.equalToSuperview().offset(-20) make.bottom.equalToSuperview().offset(-15)
} }
return view return view
} }
...@@ -442,14 +440,14 @@ extension YHCertificateUploadContentListVC: UITableViewDelegate, UITableViewData ...@@ -442,14 +440,14 @@ extension YHCertificateUploadContentListVC: UITableViewDelegate, UITableViewData
make.left.equalToSuperview().offset(20) make.left.equalToSuperview().offset(20)
make.right.equalToSuperview().offset(-20) make.right.equalToSuperview().offset(-20)
make.top.equalTo(titlelabel.snp.bottom).offset(3) make.top.equalTo(titlelabel.snp.bottom).offset(3)
make.bottom.equalToSuperview().offset(-15) make.bottom.equalToSuperview()
} }
return view return view
} }
private func tableView(_ tableView: UITableView, viewForFooterInSection section: Int) -> CGFloat { private func tableView(_ tableView: UITableView, viewForFooterInSection section: Int) -> CGFloat {
if section == 0 { if section == 0 {
return 1.0 return 20.0
} }
return 60.0 return 60.0
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment