How to show popup "copy" when select cell of table ?
Asked
Active
Viewed 886 times
1

Pramod Gharu
- 1,105
- 3
- 9
- 18

Noung
- 23
- 4
-
Look into UIMenuController as that's what is being used to show that "pop up" – RyanTCB Jan 30 '17 at 07:28
1 Answers
-1
You can't do it the normal way with UILabel
. If you still want to do it, use UITextField
instead and disable editing (It will act as label and allow text selection). If you want to use UILabel
anyways, you might want to look into UILongGestureRecognizer
and UIPasteBoard
. Add gesture to the label and on its delegate method, copy text to paste board.

nothingwhatsoever
- 105
- 2
- 10