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

Merge commit '6d0c8de5' into xiezhaolin

parents a5e8e7ed 6d0c8de5
......@@ -87,7 +87,8 @@ class YHLoginTipsView: UIView {
}
loginBtn.addTarget(self, action: #selector(clickLoginBtn), for: .touchUpInside)
loginBtn.layoutIfNeeded()
layoutIfNeeded()
loginBtn.backgroundColor = .brandMainColor//for test hjl
loginBtn.addYinHeGradualLayer()
}
......
......@@ -102,36 +102,10 @@ class YHMyViewController: YHBaseViewController, ConstraintRelatableTarget {
let img = UIImageView(image: UIImage(named: "mine_header_bg"))
return img
}()
let bigView : UIView = UIView()
let smallButton : UIButton = UIButton(type: .custom)
override func viewDidLoad() {
super.viewDidLoad()
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
}
......
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