skip to Main Content

Ios swift – Adding Tap gesture recognizer to only text of UITextfield which is Uneditable

I am adding tap gesture recognizer in a table view like this. # let tapGestureRecognizer = CustomTapGestureRecogniser(target: self, action: #selector(openMethod(tapGestureRecognizer:))) tapGestureRecognizer.data = indexPath.row cell.textField.isUserInteractionEnabled = true cell.textField.addGestureRecognizer(tapGestureRecognizer) But the whole textfield is clickable, I want this only on click of…

VIEW QUESTION
Back To Top
Search