martinjuhasz / MJPopupViewController

A UIViewController Category to display a ViewController as a popup with different transition effects.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

viewDidDisappear not being called

creatd opened this issue · comments

Firstly, thanks very much for this great library. I found out that viewDidDisappear is not triggered because self.mj_popupViewController get set to nil before animation completion callback happens.

Getting rid of the
self.mj_popupViewController = nil
in the dismissPopupViewControllerWithanimationType method solves the problem for me