I am implementing UIMenuController
in my app to copy the text from custom tableviewCell.
I have two options to do that,
Option 1. Use tableviews shouldShowMenuForRowAtIndexPath
delegates method
Option 2. Use custom UIMenuController
. For which I have added (long press/double tap) gesture recognizer in my view.(I dont want to use didSelect for this for some other purpose)
What I actually want to do is - To display only copy option when I (long press/double tap) in tableView & to capture the indexPath
of that tableView.
Problem with Option 1 is, it gives three option by default i.e. cut,copy,paste. Problem with Option 2 is, I am not able to get the index of the table as my long press Gesture recognizer method dont have the information of indexPath.
Is there any way I can get both things working (only copy option & getting indexPath on gesture).