Answer the question
In order to leave comments, you need to log in
Why is static TableView not responsive?
There is a TableViewController with static table. When you click on one of the cells, you need to perform some action. In the properties of this cell, I allowed its selection. The cell is highlighted in color when clicked, but no action occurs (the didSelectRowAtIndexPath method does not respond). With delegate everything is all right.
Answer the question
In order to leave comments, you need to log in
We make ourselves a delegate of your gestur. In the method
Return true/false depending on whether the keyboard is on the screen.
Update! By trial and error, I figured out that the problem is in the method:
let tap: UITapGestureRecognizer = UITapGestureRecognizer(target: self, action: #selector(MainTableViewController.dismissKeyboard))
view.addGestureRecognizer(tap)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question