Commit 70c39ef5 authored by David黄金龙's avatar David黄金龙

是 在 左边

否 在 右边
parent b9bff29a
...@@ -46,7 +46,6 @@ class YHBasicInfoFillView: UIView, UITextViewDelegate { ...@@ -46,7 +46,6 @@ class YHBasicInfoFillView: UIView, UITextViewDelegate {
}() }()
private lazy var answer1Btn: UIButton = { private lazy var answer1Btn: UIButton = {
let btn = UIButton() let btn = UIButton()
btn.setTitle("否", for: .normal) btn.setTitle("否", for: .normal)
btn.titleLabel?.font = UIFont.PFSC_R(ofSize: 14) btn.titleLabel?.font = UIFont.PFSC_R(ofSize: 14)
...@@ -165,18 +164,20 @@ private extension YHBasicInfoFillView { ...@@ -165,18 +164,20 @@ private extension YHBasicInfoFillView {
make.left.right.equalToSuperview() make.left.right.equalToSuperview()
} }
answer1Btn.snp.makeConstraints { make in answer2Btn.snp.makeConstraints { make in
make.size.equalTo(CGSize(width: btnWidth, height: btnHeight)) make.size.equalTo(CGSize(width: btnWidth, height: btnHeight))
make.left.equalTo(titleLabel.snp.left) make.left.equalTo(titleLabel.snp.left)
make.top.equalTo(titleLabel.snp.bottom).offset(12) make.top.equalTo(titleLabel.snp.bottom).offset(12)
} }
answer2Btn.snp.makeConstraints { make in answer1Btn.snp.makeConstraints { make in
make.size.equalTo(CGSize(width: btnWidth, height: btnHeight)) make.size.equalTo(CGSize(width: btnWidth, height: btnHeight))
make.left.equalTo(answer1Btn.snp.right).offset(12) make.left.equalTo(answer2Btn.snp.right).offset(12)
make.top.equalTo(answer1Btn.snp.top) make.top.equalTo(answer2Btn.snp.top)
} }
addSubview(bottomLine) addSubview(bottomLine)
bottomLine.snp.makeConstraints { make in bottomLine.snp.makeConstraints { make in
make.top.equalTo(answer1Btn.snp.bottom).offset(12) make.top.equalTo(answer1Btn.snp.bottom).offset(12)
......
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