###前提・実現したいこと
エラーを解決したい
###発生している問題・エラーメッセージ
thread1 signal SIGABRT
###該当のソースコード
Swift3
1 override func viewWillAppear(_ animated: Bool) { 2 super.viewWillAppear(animated) 3 4 let notificationCenter = NotificationCenter.default 5 notificationCenter.addObserver(self, selector: Selector(("handleKeyboardWillShowNotification:")), name: NSNotification.Name.UIKeyboardWillShow, object: nil) 6 notificationCenter.addObserver(self, selector: Selector(("handleKeyboardWillHideNotification:")), name: NSNotification.Name.UIKeyboardWillHide, object: nil) 7 } 8 9 override func viewDidDisappear(_ animated: Bool) { 10 super.viewDidDisappear(animated) 11 12 let notificationCenter = NotificationCenter.default 13 notificationCenter.removeObserver(self, name: NSNotification.Name.UIKeyboardWillShow, object: nil) 14 notificationCenter.removeObserver(self, name: NSNotification.Name.UIKeyboardWillHide, object: nil) 15 } 16
###試したこと
viewDidDisappear,viewWillappearを実行すると上記のエラーが出てきます
###補足情報
より詳細な情報
ここのサイト、githubを参考に練習しました。
URL
http://hayashi-rin.net/post-388
http://ameblo.jp/hayashidesuga/entry-11971210696.html
Github
https://github.com/hayashidesu/TextViewSample/blob/master/TextViewSample/ViewController.swift
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2016/10/26 08:26
2016/10/26 08:27
2016/10/26 10:37