tek*_*ek3 5 ipad uipopovercontroller
我遇到了UIPopoverViewController布局的问题.目前我正在展示大小的PopOver(350,820).我有一个单击UIAlertView的按钮,其中会显示一个文本字段.同时还会显示键盘.现在问题是每当键盘被我的PopOver变得扭曲.意味着弹出窗口的向上箭头向右移动,弹出窗口的内容与其他东西混合.
在这方面的任何帮助将非常感谢.
感谢名单
小智 2
我看到了同样的问题。尽管它并不理想,但我的解决方法是使弹出窗口变小,以便它可以容纳键盘而无需调整自身大小。
//Work around a bug that causes the popover frame and table cells to become
//corrupted when the keyboard is displayed and the popover resizes.
[self setContentSizeForViewInPopover:CGSizeMake(320, 588)];
Run Code Online (Sandbox Code Playgroud)
如果您的弹出窗口内容对于此方法来说太大,您可以将其放置在较小弹出窗口内的 UIScrollView 中。
另请参阅此解决方案: SplitViewController's popover UI error when UISearchBar is in focus