Possible Duplicate:
Easy way to disable a UITextField?
I have a UITextField. I want to disable its edit property. I just want to display a text in it.
How can i achieve it ?.
To disable editing in UITextField you need to return NO in delegate method textFieldShouldBeginEditing:
- (BOOL)textFieldShouldBeginEditing:(UITextField *)textField{ return NO; } To disable editing in UITextView set property editable to NO:
[textView setEditable: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