UIPopoverView becoming distorted when keyboard is shown + iPad

你。 提交于 2019-12-05 09:36:33
Cory Pratt

I was seeing the same problem. Although it is not ideal, my work-around was to make the popover smaller so it could accommodate the keyboard without resizing itself.

//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)];

If your popover content is too big for this approach, you might be able to place it in a UIScrollView within a smaller popover.

Also see this solution: SplitViewController's popover UI error when UISearchBar is in focus

I also the same problem. My popover's arrow was then pointing up and i changed the arrow direction facing down. It solved the problem.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!