Commit 7e7d6c23 authored by pete谢兆麟's avatar pete谢兆麟

Merge commit '6d0c8de5' into xiezhaolin

parents a5e8e7ed 6d0c8de5
...@@ -87,7 +87,8 @@ class YHLoginTipsView: UIView { ...@@ -87,7 +87,8 @@ class YHLoginTipsView: UIView {
} }
loginBtn.addTarget(self, action: #selector(clickLoginBtn), for: .touchUpInside) loginBtn.addTarget(self, action: #selector(clickLoginBtn), for: .touchUpInside)
loginBtn.layoutIfNeeded() layoutIfNeeded()
loginBtn.backgroundColor = .brandMainColor//for test hjl
loginBtn.addYinHeGradualLayer() loginBtn.addYinHeGradualLayer()
} }
......
...@@ -103,35 +103,9 @@ class YHMyViewController: YHBaseViewController, ConstraintRelatableTarget { ...@@ -103,35 +103,9 @@ class YHMyViewController: YHBaseViewController, ConstraintRelatableTarget {
return img return img
}() }()
let bigView : UIView = UIView()
let smallButton : UIButton = UIButton(type: .custom)
override func viewDidLoad() { override func viewDidLoad() {
super.viewDidLoad() super.viewDidLoad()
initView() initView()
view.addSubview(bigView)
bigView.backgroundColor = .green
bigView.snp.makeConstraints { make in
make.top.equalTo(200)
make.width.equalTo(200)
make.height.equalTo(200)
make.left.equalTo(200)
}
smallButton.addTarget(self, action: #selector(clickBtn), for: .touchUpInside)
smallButton.backgroundColor = .red
bigView.addSubview(smallButton)
smallButton.snp.makeConstraints { make in
make.top.equalTo(100)
make.left.equalTo(100)
make.width.equalTo(100)
make.height.equalTo(100)
}
view.layoutIfNeeded()
let crect = smallButton.convert(smallButton.frame, to: UIApplication.shared.yhKeyWindow())
return return
} }
......
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