views:

170

answers:

2

Hey!

I have a textfield which displays a result but I don't want it to be accessible by the user as in I don't want the keyboard to come up. How would I go about that in text?

+2  A: 

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

:) Hope that helps!

Neurofluxation
Cheers. I'll give it a go. :)
LawVS
+1  A: 

UITextField.enabled rather than UITextField.Hidden, otherwise you will no longer see your textfield.

Benj
I included the "hidden" attribute for completeness' sake :)
Neurofluxation
Thanks very mate, mate!
LawVS