I want to dismiss a FormSheetPresentation modal view controller when the user taps outside the modal view…I have seen a bunch of apps doing this (ebay on ipad for example) but i cant figure out how since the underneath views are disabled from touches when modal views are displayed like this (are they presenting it as a popover perhaps?)…anyone have any suggestions?
I want to dismiss a FormSheetPresentation modal view controller when the user taps outside
Share
I’m a year late, but this is pretty straightforward to do.
Have your modal view controller attach a gesture recognizer to the view’s window:
The handling code:
That’s about it. HIG be damned, this is a useful and often intuitive behavior.