Getting selected text from UIMenuController

前端 未结 1 1081
孤城傲影
孤城傲影 2021-02-06 17:49

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

1条回答
  •  萌比男神i
    2021-02-06 18:04

    You should be able to get the data from UIPasteboard. It should be something like [UIPasteboard generalPasteboard].string for text.

    0 讨论(0)
提交回复
热议问题