我正在寻找一种有效的方法来使用新的uipopoverpresentationcontroller控制器来重新定位popover。我已经成功地展示了popover,现在我想移动它,而不是忽略和再次展示。我在使用这个函数时遇到了问题:
(void)popoverPresentationController:(UIPopoverPresentationController *)popoverPresentationController
willRepositionPopoverToRect:(inout CGRect *)rect
inView:(inout UIView **)view
我知道这是游戏的早期阶段,但是任何人都有一个如何有效地做到这一点的例子,如果你能与我分享,我将不胜感激。提前谢谢。
https://stackoverflow.com/questions/24457063
复制相似问题