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?
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.
Try setting the editable mode off:
textView.editable = NO;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With