0

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.

lucamozza
  • 31
  • 4

1 Answers1

0

You can Using dismissPopoverAnimated Method of PopoverController you can dismiss popover.

try this,

 - (IBAction) buttonClick:(id)sender
{
    [popover dismissPopoverAnimated:YES];

}
Toseef Khilji
  • 17,192
  • 12
  • 80
  • 121