Commit 5dc36fe5 authored by Steven杜宇's avatar Steven杜宇

// UI

parent 3c94d407
...@@ -54,8 +54,8 @@ class YHTravelDocsPreparationDetailVC: YHBaseViewController { ...@@ -54,8 +54,8 @@ class YHTravelDocsPreparationDetailVC: YHBaseViewController {
lazy var tableView: UITableView = { lazy var tableView: UITableView = {
let tableView = UITableView(frame:.zero, style:.grouped) let tableView = UITableView(frame:.zero, style:.grouped)
tableView.estimatedSectionHeaderHeight = 16.0 tableView.estimatedSectionHeaderHeight = 0.01
tableView.estimatedSectionFooterHeight = 0.01 tableView.estimatedSectionFooterHeight = 14.0
tableView.contentInsetAdjustmentBehavior = .never tableView.contentInsetAdjustmentBehavior = .never
tableView.showsVerticalScrollIndicator = false tableView.showsVerticalScrollIndicator = false
tableView.separatorStyle = .none tableView.separatorStyle = .none
...@@ -442,12 +442,16 @@ extension YHTravelDocsPreparationDetailVC: UITableViewDelegate, UITableViewDataS ...@@ -442,12 +442,16 @@ extension YHTravelDocsPreparationDetailVC: UITableViewDelegate, UITableViewDataS
} }
private func tableView(_ tableView: UITableView, viewForFooterInSection section: Int) -> CGFloat { private func tableView(_ tableView: UITableView, viewForFooterInSection section: Int) -> CGFloat {
return 16.0
return 14.0
} }
func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? { func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? {
let view = UIView() let view = UIView()
if section == 0 {
view.backgroundColor = .white
}
return view return view
} }
......
...@@ -464,7 +464,7 @@ class YHTravelCertificateUploadCell: UITableViewCell { ...@@ -464,7 +464,7 @@ class YHTravelCertificateUploadCell: UITableViewCell {
} }
titleView.snp.makeConstraints { make in titleView.snp.makeConstraints { make in
make.top.equalTo(16) make.top.equalTo(8)
make.left.equalTo(18) make.left.equalTo(18)
make.right.equalTo(-18) make.right.equalTo(-18)
} }
...@@ -472,7 +472,7 @@ class YHTravelCertificateUploadCell: UITableViewCell { ...@@ -472,7 +472,7 @@ class YHTravelCertificateUploadCell: UITableViewCell {
lineView.snp.makeConstraints { make in lineView.snp.makeConstraints { make in
make.left.equalTo(18) make.left.equalTo(18)
make.right.equalTo(-18) make.right.equalTo(-18)
make.top.equalTo(titleView.snp.bottom).offset(12) make.top.equalTo(titleView.snp.bottom).offset(4)
make.height.equalTo(0.5) make.height.equalTo(0.5)
} }
......
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