Hide text selection handles after action in UIWebView

后端 未结 3 1693
南方客
南方客 2021-01-31 11:44

I have several custom UIMenuItems that do things with a selection in a UIWebView. After the action has been run on that selection I want to hide the s

相关标签:
3条回答
  • 2021-01-31 12:14

    Just disable and re-enable the User Interaction:

    myWebView.userInteractionEnabled = NO;
    myWebView.userInteractionEnabled = YES;
    
    0 讨论(0)
  • 2021-01-31 12:20

    you can simply refresh the webview if your data is only text then no body can trace that webview is refreshed

    use this code

    [webview reload];
    

    i have done this thing in my apps & its work great

    0 讨论(0)
  • 2021-01-31 12:39

    [_webview becomeFirstResponder]; After your action.

    You just need this. I always use this way.

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