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

How to dismiss popup with button click

ragulm opened this issue · comments

I want to dismiss the popup view by a button click placed in to the view and callback should happen when i do it.
Please help me

First,You can define a block or delegate in your custom popup view controller like MJSecondDetailViewController.
Then, dismiss popup in your main view controller like MJViewController(Line 62-64).