Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable keyboard on a UITextView?

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?

like image 534
Prateek Chaubey Avatar asked Nov 17 '11 16:11

Prateek Chaubey


People also ask

How do I turn off textfield keyboard?

disable keyboard for Textfield coderanch.comsetEditable( false ); Sets the specified boolean to indicate whether or not this TextComponent should be editable. A PropertyChange event ("editable") is fired when the state is changed. (2) yourTextField. setEnabled( false ); Sets whether or not this component is enabled.


1 Answers

Try setting the editable mode off:

textView.editable = NO;
like image 131
Denis Avatar answered Oct 14 '22 16:10

Denis