Closed evianzhow closed 9 years ago
Here is the demo of the problem.
The tap gesture recognizer in RWTestVC actually does no work because it is 'override' by the tap gesture recognizer in blurView. A working solution to this is ask RWTestVC to conform to UIGestureRecognizerDelegate and set blurView's recognizer delegate to RWTestVC(NOT UINavigationController in this case), then implement gestureRecognizer:shouldReceiveTouch:
return NO in RWTestVC, else return YES.
If you have a better, please tell me!
I turned out to be my mistake. I didn't know about Responder Chain. In this case, I rewritten the tap gesture recognizer in content view controller and made everything worked. Thanks!
For some reason, I would like to add a UISearchDisplayController with UISearchBar in a content view controller in my own project. I present content view controller with
showContentViewController: insideViewController
method. But content view controller attempt to dismiss when I clicked a row in the UISearchDisplayController(when got the result) and fall back to presenting view controller. I guess it is related to RWBlurPopover detect the result view of UISearchDisplayController is above this content view. So is there a way to make UISearchDisplayController successfully selected the row?