After a recent Xcode update, this code that used to work no longer works. Most of the selector (":") has auto-correction with an exception for this code:
override func viewDidLoad() { super.viewDidLoad() NSNotificationCenter.defaultCenter().addObserver(self, selector: Selector("keyboardWillShow:"), name:UIKeyboardWillShowNotification, object: nil); NSNotificationCenter.defaultCenter().addObserver(self, selector: Selector("keyboardWillHide:"), name:UIKeyboardWillHideNotification, object: nil); }
which indicates an error:
No method is declared using the Objective CWillSHow selector keypad: '
This image shows different attempts that all failed.

What is the new syntax for this code?
source share