UIPopoverController does not dismiss when clicking on the NavigationBar

后端 未结 6 1945
耶瑟儿~
耶瑟儿~ 2020-12-11 15:10

When clicking on a rightBarButton, a UIPopoverController will present.

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

6条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-11 15:38

    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.

提交回复
热议问题