iOS: selectable but not editable text

Gerriet M. Denkmann

NSTextField can set both isSelectable (true) and isEditable (false). So far so good.

But how to do this in iOS?

I have a textField which is output only (editing makes no sense at all) but the user might want to select, copy and paste the content.

How can this be done?

When the delegate has:
func textFieldShouldBeginEditing(_ textField: UITextField) -> Bool { false }
then the field cannot be selected.


Join { to automatically receive all group messages.