1.) The keyboard is UIWindow, the position depends on the main application window.
2.) What you can do is that at one of the starts of the notification method, UIKeyboardWillShowNotification or UIKeyboardWillChangeFrameNotification scan the preview windows to find the Keyboard. In one of my applications, I needed to add a subview to the keyboard. For your case, you can get the frame by doing the following:
3.) Not quite sure that this is possible, but with the code I provided. keyboard now passed to 'UIView', to which you can apply your own transformations.
It may not be the most elegant solution, but it works well for my case.
Hope this helps!
source share