@@ -32,12 +32,12 @@ final class MyInfoViewController: BaseViewController {
32
32
33
33
override func viewWillAppear( _ animated: Bool ) {
34
34
super. viewWillAppear ( animated)
35
- addKeyboardNotifications ( )
35
+ // addKeyboardNotifications()
36
36
}
37
37
38
38
override func viewWillDisappear( _ animated: Bool ) {
39
39
super. viewWillDisappear ( animated)
40
- removeKeyboardNotifications ( )
40
+ // removeKeyboardNotifications()
41
41
}
42
42
43
43
// MARK: - UI 설정
@@ -78,48 +78,48 @@ final class MyInfoViewController: BaseViewController {
78
78
79
79
// MARK: - 키보드 감지
80
80
81
- /// 키보드 이벤트 감지를 위한 옵저버를 추가합니다.
82
- func addKeyboardNotifications( ) {
83
- NotificationCenter . default. addObserver ( self ,
84
- selector: #selector( keyboardWillShow ( _: ) ) ,
85
- name: UIResponder . keyboardWillShowNotification,
86
- object: nil )
87
- NotificationCenter . default. addObserver ( self ,
88
- selector: #selector( keyboardWillHide ( _: ) ) ,
89
- name: UIResponder . keyboardWillHideNotification,
90
- object: nil )
91
- }
92
-
93
- /// 키보드 이벤트 옵저버를 제거합니다.
94
- func removeKeyboardNotifications( ) {
95
- NotificationCenter . default. removeObserver ( self ,
96
- name: UIResponder . keyboardWillShowNotification,
97
- object: nil )
98
- NotificationCenter . default. removeObserver ( self ,
99
- name: UIResponder . keyboardWillHideNotification,
100
- object: nil )
101
- }
102
-
103
- /// 키보드가 나타날 때 호출됩니다.
104
- @objc
105
- func keyboardWillShow( _ notification: Notification ) {
106
- if let keyboardSize = ( notification. userInfo ? [ UIResponder . keyboardFrameEndUserInfoKey] as? NSValue ) ? . cgRectValue {
107
- let updateKeyboardHeight = keyboardSize. height
108
- let difference = updateKeyboardHeight - currentKeyboardHeight
109
-
110
- myInfoView. completeButton. frame. origin. y -= difference
111
- currentKeyboardHeight = updateKeyboardHeight
112
- }
113
- }
114
-
115
- /// 키보드가 사라질 때 호출됩니다.
116
- @objc
117
- func keyboardWillHide( _ notification: Notification ) {
118
- if ( ( notification. userInfo ? [ UIResponder . keyboardFrameEndUserInfoKey] as? NSValue ) ? . cgRectValue) != nil {
119
- myInfoView. completeButton. frame. origin. y += currentKeyboardHeight
120
- currentKeyboardHeight = 0.0
121
- }
122
- }
81
+ // /// 키보드 이벤트 감지를 위한 옵저버를 추가합니다.
82
+ // func addKeyboardNotifications() {
83
+ // NotificationCenter.default.addObserver(self,
84
+ // selector: #selector(keyboardWillShow(_:)),
85
+ // name: UIResponder.keyboardWillShowNotification,
86
+ // object: nil)
87
+ // NotificationCenter.default.addObserver(self,
88
+ // selector: #selector(keyboardWillHide(_:)),
89
+ // name: UIResponder.keyboardWillHideNotification,
90
+ // object: nil)
91
+ // }
92
+ //
93
+ // /// 키보드 이벤트 옵저버를 제거합니다.
94
+ // func removeKeyboardNotifications() {
95
+ // NotificationCenter.default.removeObserver(self,
96
+ // name: UIResponder.keyboardWillShowNotification,
97
+ // object: nil)
98
+ // NotificationCenter.default.removeObserver(self,
99
+ // name: UIResponder.keyboardWillHideNotification,
100
+ // object: nil)
101
+ // }
102
+ //
103
+ // /// 키보드가 나타날 때 호출됩니다.
104
+ // @objc
105
+ // func keyboardWillShow(_ notification: Notification) {
106
+ // if let keyboardSize = (notification.userInfo?[UIResponder.keyboardFrameEndUserInfoKey] as? NSValue)?.cgRectValue {
107
+ // let updateKeyboardHeight = keyboardSize.height
108
+ // let difference = updateKeyboardHeight - currentKeyboardHeight
109
+ //
110
+ // myInfoView.completeButton.frame.origin.y -= difference
111
+ // currentKeyboardHeight = updateKeyboardHeight
112
+ // }
113
+ // }
114
+ //
115
+ // /// 키보드가 사라질 때 호출됩니다.
116
+ // @objc
117
+ // func keyboardWillHide(_ notification: Notification) {
118
+ // if ((notification.userInfo?[UIResponder.keyboardFrameEndUserInfoKey] as? NSValue)?.cgRectValue) != nil {
119
+ // myInfoView.completeButton.frame.origin.y += currentKeyboardHeight
120
+ // currentKeyboardHeight = 0.0
121
+ // }
122
+ // }
123
123
}
124
124
125
125
// MARK: - 네트워크 요청
0 commit comments