Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UIPopoverController does not dismiss when clicking on the NavigationBar

When clicking on a rightBarButton, a UIPopoverController will present.

The problem is: when clicking on the NavigationBar, this UIPopoverController does not dismiss.

Why? And is there a way to resolve it? I have tried to search, but can't find anything about this.

Thanks in advance.

like image 300
Lyon_Xu Avatar asked May 26 '11 10:05

Lyon_Xu


1 Answers

UIPopoverController seems to add the navigation bar to its passthroughViews array when it is presented. I was able to solve the problem by re-setting passthroughViews to an empty array immediately after presenting the popover.

like image 95
Brian Croom Avatar answered Oct 20 '22 14:10

Brian Croom