Commit b7779ba1 authored by David黄金龙's avatar David黄金龙

删除 测试代码

parent f73f5bf5
......@@ -104,34 +104,11 @@ class YHMyViewController: YHBaseViewController, ConstraintRelatableTarget {
}()
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