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

Detecting touch in popupBackgroundView

akahnn opened this issue · comments

I would like to take an action, when ever the popup is closed by tapping the bgView.
Is there a method to do so? If not please advice a solution.

In the example, exactly here, you can change it to:

[self presentPopupViewController:detailViewController animationType:indexPath.row dismissed:^{
    NSLog(@"dismissed");
    //This will happen when the popup is closed by tapping the bgView
}];