-2

当我在弹出视图中键入文本字段时,它向上移动并隐藏弹出视图中的一些字段。我想在弹出视图中重叠键盘。任何人都知道帮助我。

4

1 回答 1

0

你会在某个地方做这个

[[Utilities getAppDelegate].menuPopover presentPopoverFromRect:rect
                                                        inView:self.view 
                                      permittedArrowDirections:UIPopoverArrowDirectionAny 
                                                      animated:YES];

或类似的东西。我所做的是检查弹出窗口的绘制位置,如果它在屏幕上太低,我将允许的箭头方向更改为除了在图钉下方之外的所有内容(UIPopoverArrowDirectionLeft || UIPopoverArrowDirectionRight || UIPopoverArrowDirectionDown)

于 2013-02-22T09:31:30.693 回答