I want remove UIMenuController item.
This textfield is not a UITextField.
That textfield is UIWebView's textfield. Not owned native.
And I tried this.
override func viewDidLoad() {
super.viewDidLoad()
...
UIMenuController.shared.isMenuVisible = false
}
override func canPerformAction(_ action: Selector, withSender sender: Any?) -> Bool {
return false
}
But result is always same. How to remove UIMenuItem??
I want only "copy" button. How can I do that??