只有一种方法可以解决UIPopoverPresentationControllerDelegate
中的popover,其命名为" popoverPresentationController DismissPopover"。
我正在使用此方法进行一些UI更新。然而,它会花一点时间来解雇popover。
在弹出窗口被解除之前,有没有办法让我的UI更新?
答案 0 :(得分:0)
尝试此委托方法,
func popoverPresentationControllerShouldDismissPopover(popoverPresentationController: UIPopoverPresentationController) -> Bool
并默认返回YES,这将在弹出结束之前被调用,我的意思是在动画发生之前。