Allow user to select text from UILabel to copy

Jonathan. picture Jonathan. · Nov 3, 2010 · Viewed 45.1k times · Source

I have a UILabel, but how can I allow the user to select a portion of it's text. I don't want the user to be able to edit the text nor the label/textfield to have a border.

Answer

Yuras picture Yuras · Nov 3, 2010

It is not possible with UILabel.

You should use UITextView for that. Just disable editing using textFieldShouldBeginEditing delegate method.