iOS 8 - UIPopoverPresentationController moving popover

后端 未结 6 1314
遇见更好的自我
遇见更好的自我 2020-12-25 13:40

I am looking for an effective way to re-position a popover using the new uipopoverpresentationcontroller. I have succesfully presented the popover, and now I want to move it

6条回答
  •  借酒劲吻你
    2020-12-25 14:29

    iOS 12.3

    [vc.popoverPresentationController setSourceRect:newSourceRect]; [vc.popoverPresentationController.containerView setNeedsLayout];

提交回复
热议问题