How can I make a UITextView scrollable but not editable programmly??
I tried this:
textmessage.enabled = NO;
textmessage.userInteractionEnabled = YES;
…but doesn’t work…
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
By just setting the
editableproperty ofUITextViewtoNOyou should have its content not modifiable by the user (by the way a user could still select/copy/paste the text into it).If you appear to have it not scrollable may it be the case you do not have enough text inside of it?
Or maybe you can have the UITextView’s property scrollEnabled disabled for some reason.