Keyboard “WillShow” and “WillHide” vs. Rotation

前端 未结 7 599
青春惊慌失措
青春惊慌失措 2021-01-31 04:56

I\'ve got a view controller listening for both UIKeyboardWillShowNotification and UIKeyboardWillHideNotification. The handlers for these notifications adjust various parts of th

7条回答
  •  不要未来只要你来
    2021-01-31 05:23

    Well, try looking at keyboard width. If it is the value that you are expecting, then I assume that the values are simply switched ;). 480 makes sense as a keyboard width for going into landscape, which is what gives me this hunch.

    If that fails, just store the portrait and landscape rectangles separately. They are well documented ;)

提交回复
热议问题