If the superview of the textfield has a gesture recognizer, interactions with the tableview will be interrupted by the gesture recognizer.
Current workaround:
- Set yourself as the gesture recognizer's delegate.
- Implement
gestureRecognizer:shouldReceiveTouch:.
- Add this pseudo implementation:
if ([self.dropDownTextField isFirstResponder]) {
CGPoint touchPoint = [touch locationInView:self.dropDownTextField];
if (CGRectContainsPoint(self.dropDownTextField.dropDownTableView.frame, touchPoint)) {
return NO;
}
}