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

图片 替换

parent 00ff0ef2
...@@ -86,6 +86,18 @@ extension YHPhoneLoginWithVideoBkgViewController { ...@@ -86,6 +86,18 @@ extension YHPhoneLoginWithVideoBkgViewController {
make.left.right.equalToSuperview() make.left.right.equalToSuperview()
} }
} }
if let keyboardSize = (notification.userInfo?[UIResponder.keyboardFrameEndUserInfoKey] as? NSValue)?.cgRectValue {
let keyboardHeight = keyboardSize.height
// 使用键盘的高度进行后续操作
contentHoldView.snp.remakeConstraints { make in
make.bottom.equalToSuperview().offset(-32-keyboardHeight)
make.left.right.equalToSuperview()
}
}
} }
// 键盘将要隐藏时的处理函数 // 键盘将要隐藏时的处理函数
...@@ -142,8 +154,8 @@ extension YHPhoneLoginWithVideoBkgViewController { ...@@ -142,8 +154,8 @@ extension YHPhoneLoginWithVideoBkgViewController {
logImageView = { logImageView = {
let imageView = UIImageView() let imageView = UIImageView()
imageView.image = UIImage(named: "login_icon") imageView.image = UIImage(named: "login_icon")
imageView.layer.masksToBounds = true // imageView.layer.masksToBounds = true
imageView.layer.cornerRadius = kCornerRadius8 // imageView.layer.cornerRadius = kCornerRadius8
return imageView return imageView
}() }()
frontHoldView.addSubview(logImageView) frontHoldView.addSubview(logImageView)
......
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "Rectangle 2490@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "Rectangle 2490@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
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