I have a modal view controller that I am presenting on iPad via:
vc.modalPresentationStyle = UIModalPresentationFormSheet;
[self presentModalViewController:newDetailController animated:YES];
There are editable fields on the new VC. When I edit the field, the keyboard appears and covers up a chunk of the underlying VC.
How can I determine how much of the VC is obscured by the keyboard? On iPhone, this is simple as the presented VC is full-screen and the keyboard math is simple.
There’s a UIView method to convert coordinates from a view’s coordinates system to another’s. Use that to get the coordinates of your view in the coordinate system of your UIWindow, that’s the system the keyboard uses, and it should become a lot easier.