我的iPad应用程序在上半部分有一个弹出框,上面有几个UITextField
。
当点击文本字段时,会出现键盘,iOS会缩放(和移动)我的弹出框。我不想这样。
如何防止iOS这样做?
This answer建议覆盖一些keyboardWillShow()
和keyboardWillHide()
函数,但不清楚这些函数是在哪里定义的。
我的iPad应用程序在上半部分有一个弹出框,上面有几个UITextField
。
当点击文本字段时,会出现键盘,iOS会缩放(和移动)我的弹出框。我不想这样。
如何防止iOS这样做?
This answer建议覆盖一些keyboardWillShow()
和keyboardWillHide()
函数,但不清楚这些函数是在哪里定义的。
1条答案
按热度按时间ibrsph3r1#
正如Leszek在评论中提到的,更新
UIViewController
的popoverPresentationController.popoverLayoutMargins
以适应键盘的高度:字符串