-
Notifications
You must be signed in to change notification settings - Fork 446
When i run the sample,it got errors from the keyboardManager ,i am not good at swift ,how should i tackle with it ? #45
Comments
what version of Xcode are you using? |
7.2.1 |
The selector syntax is different for Swift 2.2. For your version, you should use |
The syntax for selectors was improved in Swift 2.2, and Xcode 7.3. Since Xcode 7.3 official was released, I upgraded the sample project to be run on 7.3 instead of 7.2. If you still want to run it on 7.2, you can change it from |
it success when i run on 7.3,but it was not scroll when the word is under the keyboard, |
because the fix for that bug hasn't been merged yet, it's a wip. please see pull req #34 |
Awesome, closing this issue then 👍
I made a comment in pull request #34 so you can use the in-progress version of the project that should be fixed. It'd be great if you could use it and make sure it works before we merge it in! |
NSNotificationCenter.defaultCenter().addObserver(self, selector: #selector(KeyboardManager.keyboardWillShowOrHide(_:)), name: UIKeyboardWillShowNotification, object: nil)
error: missing argument for parameter 'selector' in call
The text was updated successfully, but these errors were encountered: