有没有像" popoverPresentationControllerWillDismissPopover"

时间:2016-01-04 14:39:50

标签: ios popover uipopover

只有一种方法可以解决UIPopoverPresentationControllerDelegate中的popover,其命名为" popoverPresentationController DismissPopover"。

我正在使用此方法进行一些UI更新。然而,它会花一点时间来解雇popover。

在弹出窗口被解除之前,有没有办法让我的UI更新?

1 个答案:

答案 0 :(得分:0)

尝试此委托方法,

func popoverPresentationControllerShouldDismissPopover(popoverPresentationController: UIPopoverPresentationController) -> Bool

并默认返回YES,这将在弹出结束之前被调用,我的意思是在动画发生之前。