My project design:
UINavigationController ---> UITableViewController ---> UIViewController
I've a UISeachBar on navigationItem.titleView
I tried to use UITapGestureRecognizer, it works but not as expected. Keyboard only dismisses when I touch on an UITableViewCell.
I want UITableView responds to touchesBegan so that I could make the keyboard disappears whenever I touch on an UITableViewCell or just scroll on the table.
Besides that, my UIViewController contains a googlemap's View, it does respond to touchesBegan but only one first touch, after that, every other touches would be ignored.
Can anyone help, pls ?
too long, didn't read: i want to dismiss the virtual keyboard on UITableView likes safari or chrome: when the touch began, not when it ended