Alex Rivera | Logout

Allow user to select text from UILabel to copy

Asked 2010-11-03T19:52:14.743
62

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.

Edit
Report

1 Answer

37

You use create a UITextView and make its .editable to NO. Then you have a text view which (1) the user cannot edit (2) have no border and (3) the user can select text from it.

answered 2010-11-03T19:58:11.160

Your Answer