开发者

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

开发者 https://www.devze.com 2022-12-28 04:48 出处:网络
This question already has answers here: Closed 10 years ago. Possible Duplicate: How disable Copy, Cut, Select, Select All in UITextView
This question already has answers here: Closed 10 years ago.

Possible Duplicate:

How disable Copy, Cut, Select, Select All in UITextView

I have some text in a UITextView. I d开发者_如何学运维on't want it to be selectable. How can I do this?


Use myTextView.editable = NO;


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消