Ios 当第一个响应更改时,将发布什么UIKeyboardNotification?

Ios 当第一个响应更改时,将发布什么UIKeyboardNotification?,ios,objective-c,nsnotificationcenter,uikeyboard,Ios,Objective C,Nsnotificationcenter,Uikeyboard,我希望在第一响应者更改(均为UIExtField)时收到UIKeyboard通知,以便进行一些编码以防止UIKeyboard覆盖我的UIExtField。但当键盘大小未更改时,未发布UIKeyboard通知(我已尝试接收这些通知:UIKeyboardWillShowNotification,UIKeyboardWillHideNotification,UIKeyboardWillChangeFrameNotification)。当键盘大小更改时,我收到了几个UIKeyboardWillShowN

我希望在第一响应者更改(均为UIExtField)时收到UIKeyboard通知,以便进行一些编码以防止UIKeyboard覆盖我的UIExtField。但当键盘大小未更改时,未发布UIKeyboard通知(我已尝试接收这些通知:
UIKeyboardWillShowNotification
UIKeyboardWillHideNotification
UIKeyboardWillChangeFrameNotification
)。当键盘大小更改时,我收到了几个UIKeyboardWillShowNotification通知。我是否错过了什么

  • FirstResponse
    更改时,不会发布
    ui键盘通知
  • 当键盘大小发生变化时,
    UIKeyboardNotification
    将与
    UIKeyboardFrame
    一起发布
  • 这是一个简单的解决方案:将
    UIKeyboardFrame
    存储在一个属性中,然后在
    FirstResponse
    更改并显示
    UIKeyboard
    时发送
    scrollContentView
    消息(自行实现)