keyboardWillShow in IOS8 with UIKeyboardWillShowNotification

后端 未结 2 1836
灰色年华
灰色年华 2021-01-02 18:26

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 keyboa

2条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-02 18:41

    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.

提交回复
热议问题