I’d like to programmatically dismiss the select/paste/copy etc menu in a UITextView. I know how to prevent it from appearing, but I’d also like to be able to dismiss an open one.
I’d like to programmatically dismiss the select/paste/copy etc menu in a UITextView . I
Share
Whenever you want to dismiss it, just remove the
UITextView‘s responder. For example, you want to dismiss it when the user touches outside the popup menu (which, btw, already happens by default!). For this, you can do: