How to disable a text box?

I have a text box that displays the result, but I do not want it to be available to the user, since I do not want the keyboard to fit. How can I do this in the text?

+4
source share
2 answers

I believe what you are looking for: UITextField.enabled = NO; or UITextField.hidden = YES;

:) Hope this helps!

+12
source

UITextField.enabled , not UITextField.Hidden , otherwise you will no longer see the text field.

+4
source

Source: https://habr.com/ru/post/1303649/


All Articles