# WKWebView and UIMenuController

**URL:** <https://forums.kodeco.com/t/wkwebview-and-uimenucontroller/35083>\
**Category:** iOS\
**Created:** [October 2, 2017, 2:59pm UTC](https://forums.kodeco.com/t/wkwebview-and-uimenucontroller/35083 "2017-10-02T14:59:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sshah](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/sshah/32/72317_2.png) [@sshah](https://forums.kodeco.com/u/sshah)\
**Post date:** [October 2, 2017, 2:59pm UTC](https://forums.kodeco.com/t/wkwebview-and-uimenucontroller/35083/1 "2017-10-02T14:59:03Z")

</div>

I’m currently stuck with limiting the number of items displayed in a UIMenuController when I long press on text in WKWebView.  
I’m using a custom webView by subclassing the WKWebView, and I need to display only my custom options and none of Apple’s default ones (copy, delete, share).  
The closest I have come is this :

> <https://stackoverflow.com/questions/33243230/disable-entire-uimenucontroller-edit-menu-in-wkwebview/42510788#42510788>

This looks very ugly and is very distracting.  
Any help that you could provide with regards to this will be highly appreciated.

---

<div class="post-metadata">

**Author:** ![system](https://s3.amazonaws.com/cdn.raywenderlich.com/community/forum-assets/noun-game-ghost-878668.png) [@system](https://forums.kodeco.com/u/system)\
**Post date:** [March 18, 2018, 6:59am UTC](https://forums.kodeco.com/t/wkwebview-and-uimenucontroller/35083/2 "2018-03-18T06:59:20Z")

</div>

Closed on March 18, 2018, 6:59am UTC

This topic was automatically closed after 166 days. New replies are no longer allowed.
