Commit 0d4affa0 authored by Steven杜宇's avatar Steven杜宇

// 指引UI

parent 1b19627a
......@@ -69,6 +69,7 @@ class YHResignAppointGuideLineView: UIView {
lazy var bkgImageV: UIImageView = {
let imageV = UIImageView()
imageV.image = UIImage(named: "resign_appoint_guide_text_img")
imageV.contentMode = .scaleAspectFit
imageV.clipsToBounds = true
return imageV
}()
......@@ -197,8 +198,7 @@ private extension YHResignAppointGuideLineView {
whiteContentView.addSubview(bkgImageV2)
bkgImageV2.snp.makeConstraints { make in
make.top.equalTo(-20)
make.left.right.equalToSuperview()
make.top.left.right.equalToSuperview()
make.height.equalTo(KScreenWidth*(151.0/375.0))
}
......@@ -216,20 +216,19 @@ private extension YHResignAppointGuideLineView {
make.height.equalTo(whiteHeight-98-20)
}
if let _ = UIImage(named:"resign_appoint_guide_text_img") {
let radio = 1549.0/375.0
myScrollView.addSubview(bkgImageV)
bkgImageV.snp.makeConstraints { make in
make.top.equalToSuperview()
make.left.equalTo(20)
make.right.equalTo(-20)
make.width.equalTo(KScreenWidth-40)
make.height.equalTo(ceil((KScreenWidth-40)*radio))
make.left.equalTo(0)
make.right.equalTo(0)
make.width.equalTo(KScreenWidth)
make.height.equalTo((KScreenWidth)*radio)
make.bottom.equalTo(0)
}
myScrollView.contentSize = CGSize(width: KScreenWidth, height: ceil((KScreenWidth-40.0)*radio))
myScrollView.contentSize = CGSize(width: KScreenWidth, height:KScreenWidth*radio)
}
}
......
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