Commit 38199d25 authored by pete谢兆麟's avatar pete谢兆麟

重命名布局修改

parent ca138e2b
...@@ -78,7 +78,7 @@ class YHWorkExperienceViewController: YHBaseViewController { ...@@ -78,7 +78,7 @@ class YHWorkExperienceViewController: YHBaseViewController {
let isKeyboardShow = notification.name == UIResponder.keyboardWillShowNotification let isKeyboardShow = notification.name == UIResponder.keyboardWillShowNotification
self.blackMaskView.isHidden = !isKeyboardShow self.blackMaskView.isHidden = !isKeyboardShow
let bottomMargin = (isKeyboardShow ? 0 : YHFileRenameInputView.height) let bottomMargin = (isKeyboardShow ? -keyboardFrame.height : YHFileRenameInputView.height)
if !isKeyboardShow { if !isKeyboardShow {
IQKeyboardManager.shared.enable = true IQKeyboardManager.shared.enable = true
......
...@@ -209,11 +209,11 @@ extension YHEditInterestViewController { ...@@ -209,11 +209,11 @@ extension YHEditInterestViewController {
if notification.userInfo != nil { if notification.userInfo != nil {
guard let keyboardFrame = (notification.userInfo?[UIResponder.keyboardFrameEndUserInfoKey] as AnyObject).cgRectValue else {return } guard let keyboardFrame = (notification.userInfo?[UIResponder.keyboardFrameEndUserInfoKey] as AnyObject).cgRectValue else { return }
let isKeyboardShow = notification.name == UIResponder.keyboardWillShowNotification let isKeyboardShow = notification.name == UIResponder.keyboardWillShowNotification
self.blackMaskView.isHidden = !isKeyboardShow self.blackMaskView.isHidden = !isKeyboardShow
let bottomMargin = (isKeyboardShow ? 0 : keyboardFrame.height) let bottomMargin = (isKeyboardShow ? -keyboardFrame.height : keyboardFrame.height)
if !isKeyboardShow { if !isKeyboardShow {
IQKeyboardManager.shared.enable = true IQKeyboardManager.shared.enable = true
......
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