My iPad app has a popover with a few UITextFields at the top half.
When tapping a textfield, which makes the keyboard appear, iOS scales (and moves) my popover. I don't want that.
How do I prevent iOS from doing that?
This answer suggests to override some keyboardWillShow() and keyboardWillHide() functions, but it's unclear where these are defined.
As mentioned by Leszek in the comments update the
popoverPresentationController.popoverLayoutMarginsof yourUIViewControllerto accommodate the height of the keyboard: