Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I make a UITextView not selectable? [duplicate]

Possible Duplicate:
How disable Copy, Cut, Select, Select All in UITextView

I have some text in a UITextView. I don't want it to be selectable. How can I do this?

like image 263
Sheehan Alam Avatar asked Apr 28 '10 03:04

Sheehan Alam


2 Answers

Use myTextView.editable = NO;

like image 132
Marichka Avatar answered Oct 16 '22 12:10

Marichka


Are there any features of the UITextView that you need that would not be available with a UILabel in a UIScrollView? Seems like the only thing you would lose is automatically setting the contentSize, which is easy enough to do manually.

like image 42
drawnonward Avatar answered Oct 16 '22 12:10

drawnonward