Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

able to show context menu by using this library #24

Open
Neeraj204 opened this issue Apr 14, 2017 · 3 comments
Open

able to show context menu by using this library #24

Neeraj204 opened this issue Apr 14, 2017 · 3 comments

Comments

@Neeraj204
Copy link

Hi mate, Thanks for the great resource.

Currently I need to show context menu for copy content of UILabel but not able to perform that.
Any workaround?

@xerxes235
Copy link
Collaborator

can you send me your project?

@Neeraj204
Copy link
Author

By context menu, I mean to say copy, cut, paste by long press on text.
see attached image:

context-menu

@jamesstout
Copy link

Add a UILongPressGestureRecognizer to the cell then write the handler that takes a UITableViewCell (so you can customise the menuItems based on what's in the cell) and the longPressGestureRecognizer so you can get the location rect to display from.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants