Problems showing UIMenuController one after another

前端 未结 4 895
鱼传尺愫
鱼传尺愫 2021-02-08 10:50

I\'m using the new customization abilities of the UIMenuController to add things other than \"Copy\" to the menu for cut&paste into a webview.

What I do is getting t

4条回答
  •  無奈伤痛
    2021-02-08 11:06

    Ran into the same problem and what I did was override the webview with a subclass (yep I know you shouldn't) and return NO for canPerformAction: for the copy: selector. Then I added my own Copy item to the ShareMenuController that calls the original method from UIWebview. That way as many items as you want can be added and are initially visible.

提交回复
热议问题