Commit 6e0a744d authored by Steven杜宇's avatar Steven杜宇

// 扩大展开按钮点击范围

parent e3a69595
...@@ -44,7 +44,7 @@ class YHPrincipleEnvelopeCell: UITableViewCell { ...@@ -44,7 +44,7 @@ class YHPrincipleEnvelopeCell: UITableViewCell {
let btn = UIButton() let btn = UIButton()
btn.setImage(UIImage(named: "custom_service_expand_0"), for: .normal) btn.setImage(UIImage(named: "custom_service_expand_0"), for: .normal)
btn.addTarget(self, action: #selector(didExpandBtnClicked), for: .touchUpInside) btn.addTarget(self, action: #selector(didExpandBtnClicked), for: .touchUpInside)
btn.YH_clickEdgeInsets = UIEdgeInsets(top: 0, left: 40, bottom: 20, right: 40) btn.YH_clickEdgeInsets = UIEdgeInsets(top: 0, left: KScreenWidth, bottom: 20, right: 40)
return btn return btn
}() }()
......
...@@ -40,7 +40,7 @@ class YHPrinciplePhotoListCell: UITableViewCell { ...@@ -40,7 +40,7 @@ class YHPrinciplePhotoListCell: UITableViewCell {
let btn = UIButton() let btn = UIButton()
btn.setImage(UIImage(named: "custom_service_expand_0"), for: .normal) btn.setImage(UIImage(named: "custom_service_expand_0"), for: .normal)
btn.addTarget(self, action: #selector(didExpandBtnClicked), for: .touchUpInside) btn.addTarget(self, action: #selector(didExpandBtnClicked), for: .touchUpInside)
btn.YH_clickEdgeInsets = UIEdgeInsets(top: 0, left: 40, bottom: 20, right: 40) btn.YH_clickEdgeInsets = UIEdgeInsets(top: 0, left: KScreenWidth, bottom: 20, right: 40)
return btn return btn
}() }()
......
...@@ -136,7 +136,7 @@ class YHPrincipleProfileListCell: UITableViewCell { ...@@ -136,7 +136,7 @@ class YHPrincipleProfileListCell: UITableViewCell {
let btn = UIButton() let btn = UIButton()
btn.setImage(UIImage(named: "custom_service_expand_0"), for: .normal) btn.setImage(UIImage(named: "custom_service_expand_0"), for: .normal)
btn.addTarget(self, action: #selector(didExpandBtnClicked), for: .touchUpInside) btn.addTarget(self, action: #selector(didExpandBtnClicked), for: .touchUpInside)
btn.YH_clickEdgeInsets = UIEdgeInsets(top: 0, left: 40, bottom: 20, right: 40) btn.YH_clickEdgeInsets = UIEdgeInsets(top: 0, left: KScreenWidth, bottom: 20, right: 40)
return btn return btn
}() }()
......
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