1
votes

I'm presenting a UIPopoverController above a UIWebView, to present a couple of selection options for the user. However I found that while tapping outside the popover will close the popover as expected, but the tap is not detected on the webview. I have to tap again on the same location in the webview (to e.g. trigger the next popover controller).

Is there a way to make the webview detect the popover-closing tap?

1

1 Answers

1
votes

You need to look at passthroughViews property of UIPopoverController

Example:

//if you have these somewhere
//UIPopoverController *popoverController.passthroughViews;
//UIWebView *webView

popoverController.passthroughViews = [NSArray arrayWithObject:webView];