I'd like to use a UILongPressGestureRecognizer
to start the keyboard, but I find that the UITextField still starts the keyboard when开发者_如何学Go double tapped.
Is it possible to make UITextField
ignore all other gestures?
Adding a gesture recognizer won't necessarily override the standard gestures for a control, unless the standard gesture is the same as or is a subgesture of the recognizer's gesture. This implies that you can override the standard gesture by attaching a matching recognizer (e.g. UITapGestureRecognizer) and setting no action for it.
精彩评论