Commit 0c35bb91 authored by David黄金龙's avatar David黄金龙

提示 添加close 按钮

parent 2171ebd4
......@@ -174,6 +174,16 @@ class YHInformationFillTipsAlertView: UIView {
make.height.equalTo(24)
}
let closeBtn : UIButton = UIButton(type: .custom)
closeBtn.setImage(UIImage(named: "person_info_close_btn"), for: .normal)
closeBtn.setImage(UIImage(named: "person_info_close_btn"), for: .highlighted)
topView.addSubview(closeBtn)
closeBtn.addTarget(self, action: #selector(clickCloseBtn), for: .touchUpInside)
closeBtn.snp.makeConstraints { make in
make.centerY.equalTo(lable01.snp.centerY)
make.right.equalTo(-25)
make.width.height.equalTo(20)
}
let line = UIView()
line.backgroundColor = UIColor.separatorColor
......@@ -212,7 +222,10 @@ class YHInformationFillTipsAlertView: UIView {
} else {
YHHUD.flash(message: "请先勾选确认知悉内容")
}
}
@objc func clickCloseBtn() {
dismiss()
}
@objc func onClickAgree() {
......@@ -220,7 +233,6 @@ class YHInformationFillTipsAlertView: UIView {
}
@objc func agree() {
block?(true)
// dismiss()
......
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "Frame 33332868@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "Frame 33332868@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
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