After switching to iOS8, I get weird behavior when I move views while switching to the keyboard. Can someone explain what is happening?
Here is a minimal example to demonstrate the problem. I have a simple view with a UITextField and a UIButton . The nudgeUp function moves the text box, and the button moves it 10 points. It is triggered either by the buttonPressed callback or the keyboardWillShow callback.
When I click the button, the code works as expected: buttonPressed calls nudgeUp , and the button and text field jump up 10 points.
When I click on the text box, keyboardWillShow calls nudgeUp , but the behavior is very different. The button and the text box immediately jump 10 points, and then return to their original position when the keyboard shows itself.
Why is this happening? How to restore animation control during keyboard presentation in iOS8?
uikeyboard animation ios8
Pitarou
source share