Sash Zats
Sash Zats

Reputation: 5466

viewWillDisappear/viewDidDisappear is not called on "presenting controller" when present controller using UIPresentationController

I can’t find a conclusive answer when presenting using UIPresentationController that declares presentationStyle to be .FullScreen or .OverFullScreen, view(Will|Did)Disappear is not called on presenting controller.

I saw some suggestions to call beginAppearanceTransition and alike manually - but that seems like an unrelated API for container controllers. Does anyone know how to implement it properly?

view(Will|Did)Appear is called normally on presented controller, but that seems to be a sideeffect of adding a view of a view controller to a hierarchy

Not too much documentation on UIPresentationController.presentationStyle, which I expected to affect UIKit’s behavior when it comes to messaging presenting view controller, not only “appearance of the presented content”.

Upvotes: 2

Views: 1549

Answers (0)

Related Questions