我想移动一个 UIPopoverController
。我找到的唯一方法是打电话
[popover presentPopoverFromRect...] 显示新位置。
这实际上移动了它,但没有完全到达我想要的位置,我正在使用 UIPopoverArrowDirectionAny
。
还有其他选择吗?
最佳答案
使用 [popover presentPopoverFromRect...] 是移动 UIPopoverController 的正确方法作为技术问答文档 http://developer.apple.com/library/ios/#qa/qa1694/_index.html . 如果你有一个精确的弹出框位置,我认为除了使用 UIPopoverArrowDirectionAny 之外,你应该有一个精确的 UIPopoverArrowDirection。这可能会影响弹出窗口的位置。
关于ios - UIPopoverController:如何移动它?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5447857/