Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

keyboardWillShow in IOS8 with UIKeyboardWillShowNotification

Tags:

ios

I am running the same code on an IOS 7 and IOS 8 device with differing results

Given a screen with two text fields

In IOS 7 if I touch the first field keyboardWillShow is called but if I touch the second field when the keyboard is already shown it is not called a second times.

In IOS 8 keyboardWillShow is called twice

Is this documented behaviour ?

like image 586
Ryan Heitner Avatar asked Sep 14 '14 10:09

Ryan Heitner


1 Answers

The reason is the difference in the keyboard. If the second field is a password field this means there is another keyboard under the hood. Therefore the notification is sent twice.

like image 52
dasdom Avatar answered Oct 20 '22 20:10

dasdom