TouchesEnded: withEvent: not being called from my UIView, which is on top of the UITableView

I have a UITableView and a UISearchBar in its header. When the user clicks on the UISearchBar, I create a view (bg: black, alpha.65) and place it above the contents in the UITableView. What I want is when the user clicks this translucent UIView to leave the first responder from the UISearchBar. I implemented touchesEnded:withEvent:in my UIViewController (also my UITableView controller), but this function is never called. Is something missing here?

Greetings

Rob

+3
source share
3 answers

, , , . , , UIView touchesEnded:withEvent:.

+1

UISearchBarController, UISearchBar, .

0

Source: https://habr.com/ru/post/1781818/


All Articles