I have a popover displayed from a barButton, I just want that when I tap a button in the popover the popover is dismissed.
I tried a this way and adding a public method in the viewController that creates the popover to dismiss it, but nothing happens.
Any idea? Thank you in advance.