質問編集履歴

1

分からなくなった点についての追記

2018/11/07 06:00

投稿

medamaoyaji
medamaoyaji

スコア14

test CHANGED
File without changes
test CHANGED
@@ -156,4 +156,28 @@
156
156
 
157
157
  'UIKeyboardDidHide' has been renamed to 'UIResponder.keyboardDidHideNotificationReplace 'UIKeyboardDidHide' with 'UIResponder.keyboardDidHideNotification'」というエラーが出てしまいます。
158
158
 
159
+ これをFixボタンでエラーが以前のために変更したところ、
160
+
161
+ ```
162
+
163
+ notification.addObserver(self, selector:#selector(ViewController.keyboardChangeFrame(_:)) , name: NSNotification.Name.UIResponder.keyboardDidChangeFrameNotification, object: nil)
164
+
165
+
166
+
167
+ notification.addObserver(self, selector: #selector(ViewController.keyboardWillShow(_:)), name: NSNotification.Name.UIResponder.keyboardWillShowNotification, object: nil)
168
+
169
+
170
+
171
+ notification.addObserver(self, selector: #selector(ViewController.keyboardDidHide(_:)), name: NSNotification.Name.UIResponder.keyboardDidHideNotification, object: nil)
172
+
173
+ ```
174
+
175
+ になり、また別のエラーが出てしまいました。
176
+
177
+ 「Type 'NSNotification.Name' has no member 'UIResponder'」
178
+
179
+ 翻訳したところ「タイプ 'NSNotification.Name'にはメンバー 'UIResponder'がありません」と出てしまいました。ネットで検索などしたのですが、力不足で見つけれませんでした。
180
+
181
+ エラーを修正するには何を入れたらいいのか、解決するためにどのように調べればいいのかを教えてい下さい
182
+
159
183
  解決方法がありましたら、ご助言お願いします。