I’m trying to get the selected text when performing actions with a UIMenuController. How do I get the selected text out? I’m using a UIWebView at the moment, but would like a universal solution if there is one.
I’m trying to get the selected text when performing actions with a UIMenuController. How
Share
You should be able to get the data from
UIPasteboard. It should be something like[UIPasteboard generalPasteboard].stringfor text.