0

There is only 1 method about dissmissing the popover in UIPopoverPresentationControllerDelegate, which named "popoverPresentationControllerDidDismissPopover".

I am making some UI update in this method. However,it would spend a little time to dismissing the popover.

Is there any way to make my UI updates before the popover is get dismissed?

Parth Pandya
  • 1,460
  • 3
  • 18
  • 34
340244120
  • 11
  • 3

1 Answers1

0

Try this delegate method,

func popoverPresentationControllerShouldDismissPopover(popoverPresentationController: UIPopoverPresentationController) -> Bool

and return YES by default, this will be called before the pop over gets dismissed, I mean before the animation happens.

Satheesh
  • 10,998
  • 6
  • 50
  • 93