Commit b469b304 authored by pete谢兆麟's avatar pete谢兆麟

最后一点UI 修改

parent a7cfd8cf
...@@ -294,8 +294,8 @@ class YHMakePlanLabelCell: UITableViewCell { ...@@ -294,8 +294,8 @@ class YHMakePlanLabelCell: UITableViewCell {
}() }()
contentView.addSubview(centerView) contentView.addSubview(centerView)
centerView.snp.makeConstraints { make in centerView.snp.makeConstraints { make in
make.left.equalTo(16) make.left.equalTo(18)
make.right.equalTo(-16) make.right.equalTo(-18)
make.top.equalTo(7) make.top.equalTo(7)
make.bottom.equalTo(-7) make.bottom.equalTo(-7)
} }
...@@ -309,10 +309,9 @@ class YHMakePlanLabelCell: UITableViewCell { ...@@ -309,10 +309,9 @@ class YHMakePlanLabelCell: UITableViewCell {
}() }()
centerView.addSubview(titleLabel) centerView.addSubview(titleLabel)
titleLabel.snp.makeConstraints { make in titleLabel.snp.makeConstraints { make in
make.left.equalTo(18) make.left.right.equalToSuperview()
make.top.equalTo(16) make.top.equalTo(16)
make.height.equalTo(20) make.height.equalTo(20)
make.right.equalTo(-18)
} }
mainItemView = { mainItemView = {
...@@ -323,10 +322,8 @@ class YHMakePlanLabelCell: UITableViewCell { ...@@ -323,10 +322,8 @@ class YHMakePlanLabelCell: UITableViewCell {
}() }()
centerView.addSubview(mainItemView) centerView.addSubview(mainItemView)
mainItemView.snp.makeConstraints { make in mainItemView.snp.makeConstraints { make in
make.bottom.equalToSuperview() make.left.right.bottom.equalToSuperview()
make.top.equalTo(36) make.top.equalTo(36)
make.left.equalTo(18)
make.right.equalTo(-18)
} }
lineView = { lineView = {
...@@ -336,10 +333,8 @@ class YHMakePlanLabelCell: UITableViewCell { ...@@ -336,10 +333,8 @@ class YHMakePlanLabelCell: UITableViewCell {
}() }()
centerView.addSubview(lineView) centerView.addSubview(lineView)
lineView.snp.makeConstraints { make in lineView.snp.makeConstraints { make in
make.left.equalTo(18) make.left.right.bottom.equalToSuperview()
make.bottom.equalToSuperview()
make.height.equalTo(1) make.height.equalTo(1)
make.right.equalTo(-18)
} }
} }
......
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