Tom Odell Tom Odell - 1 year ago 87
Swift Question

How to disable the default UIMenuItem without affecting messages UIMenuItem?

There is a way to disable the default UIMenuItem

enter image description here

Without affecting messages UIMenuItem?
enter image description here


UIMenuController.shared.menuItems = [UIMenuItem.init(title: "Delete", action: Selector(("delete")))]

Answer Source


cell.textView.selectable = false in cellForRow method

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download