I have a table which has a long press gesture recogniser that runs code depending on what table row is selected.
The trouble I'm having is that I currently have to tap the row I want then do the long press.
How can I make the table select the row that I am long pressing without having to tap to select it first?
To avoid this, you can add the
UILongPressGestureRecognizer
inside thecellForRowAtIndexPath
instead ofdidSelectRowAtIndexPath