14

I have used a Text view in my app for iPad on xib. I wrote some text on it. Now while the app is running and the user is reading that text, if he accidentally touches the screen a keyboard appear. I want to disable that keyboard popping out. How should I do it?

Prateek Chaubey
  • 653
  • 2
  • 10
  • 24

2 Answers2

16

Try setting the editable mode off:

textView.editable = NO;
Denis
  • 6,313
  • 1
  • 28
  • 27
11

You can also achieve this via Interface Builder by unchecking the Behavior Editable box in the Attributes Inspector tab.

Interface Builder Attributes Inspector

DenVog
  • 4,226
  • 3
  • 43
  • 72