View Full Version : Making UITextView scrollable but NOT editable ?

Jul 6, 2008, 02:48 AM
Hello all,

I am writing (trying to ) an iPhone App using the latest SDK...

I'm only dealing with one view, in which I positionned some UITextView(s) to display some text.

The lenght of the text is variable, and I would like to make these TextViews scrollable but not editable (ie : if you press your finger on the textView and move it up or down (or left and right), I would like the text to scroll, but if you only tap on the UITextView, I DO NOT want the keyboeard to pop-up !

any ideas ??

Jul 6, 2008, 12:37 PM
OK, I got it !

In case someone was curious, is pretty straightforward ! :

in IB, simply uncheck "editable" in the View attributes, then check "scrolling enabled" and "user interaction enabled"...