Ask a Question
Advertise on boostr.in
how to get coordinates cgrect for the selected text in uiwebview using -'ios,uiwebview,coordinates,cgrect,textselection'
how to get coordinates cgrect for the selected text in uiwebview ¬†using -'ios,uiwebview,coordinates,cgrect,textselection'
I have simple UIWebView with loaded html.
I want to show the PopoverView pointed to the selected text.
I can get the menuFrame of the UIMenuController and use its rect, but the result isn't as accurate at the corners of the screen as I need.
I can calculate the screen size and get menuFrame rect and then I can suppose where the selection may be found, but I want exactly know where is the selected text.
Is it generally possible?
Sep 7, 2015
to add a comment.
Your name to display (optional):
Email me at this address if my answer is selected or commented on:
Email me if my answer is selected or commented on
Privacy: Your email address will only be used for sending these notifications.
To avoid this verification in future, please