views:

37

answers:

0

If I have several buttons that launches the same popovers, how can I dismiss the an already visible popover before displaying the new one?

I have a local variable self.popover that is set to the current popovercontroller; i check this popover variable to see if it is visible; if it is visible then I dismiss it and then present the new one, but the new one doesnt become visible until I touch it twice.