0

I'm making a UIPopoverController and displaying it. All is well, content is loading... except I need to dismiss the popover when a button is pressed. The UIPopoverController's delegate is set to self but I don't know how to call a method in the parent view controller.

user2687781
  • 325
  • 2
  • 11
  • [google](https://www.google.com/search?client=safari&rls=en&q=How+to+dismiss+UIPopoverController&ie=UTF-8&oe=UTF-8) – LE SANG Aug 18 '13 at 20:59

1 Answers1

0

UIPopoverController has method - (void)dismissPopoverAnimated:(BOOL)animated

so you can dismiss it directly from itself.

Unless you meant that you want to dismiss popover from its contentViewController, then there is at least dozen of answers regarding that here - for instance similar to this one

Community
  • 1
  • 1
deekay
  • 899
  • 6
  • 8