Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

How to make UItextview non-selectable programmatically

I need the content of textview not to be selectable and editable by programatically,i have tried using code

"self.yourTextView.scrollEnabled = NO;
[self.yourTextView setText:contentString];
self.yourTextView.scrollEnabled = YES;"
but i dint get it with this code.how else can i do this?

iPhone 6, iOS 8.1

Posted on Mar 5, 2015 5:07 AM

Reply
Question marked as Best reply

Posted on Mar 5, 2015 5:53 AM

Try: self.yourTextView.userInteractionEnabled = NO;

3 replies

How to make UItextview non-selectable programmatically

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.