I have a custom PresentationViewController
which has a half screen size height and full screen size width.
I want to press outside PresentationViewController
to dismiss it.
I tried adding a button in under ViewController, but this button's action never be called.
I also tried adding a button in PresentationViewController
that have frame equal to view.frame
and send an action for touchUpOutside
, this button's action never be called also.
So how to dismiss this PresentationViewController