I am using :
UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc]
initWithTarget:self
action:@selector(dismissKeyboard:)];
[self.view addGestureRecognizer:tap];
in order to close keyboard when clicked anywhere else from UITextField
.
However in my view, I have UITableView , and I have to detect when click on the rows of UITableView.
Because of UITapGestureRecognizer
my didSelectRowAtIndexPath
function is not called. Is there any way to detect whether the clicked object is UITableViewCell?