UITextView disabling text selection

Solution 1:

Issue How disable Copy, Cut, Select, Select All in UITextView has a workable solution to this that I've just implemented and verified:

Subclass UITextView and overwrite canBecomeFirstResponder:

- (BOOL)canBecomeFirstResponder {
    return NO;
}

Note that this disables links and other tappable text content.

Solution 2:

I've found that calling

[textView setUserInteractionEnabled:NO];

works quite well.

Solution 3:

UITextView's selectable property:

This property controls the ability of the user to select content and interact with URLs and text attachments. The default value is YES.

Solution 4:

Swift 4, Xcode 10:

If you want to make it so the user isn't able to select or edit the text.

This makes it so it can not be edited:

textView.isEditable = false

This disables all user interaction:

textView.isUserInteractionEnabled = false

This makes it so that you can't select it. Meaning it will not show the edit or paste options. I think this is what you are looking for.

textView.isSelectable = false