views:

304

answers:

1

Hi, I have 4 textfields in a screen. Consider all textfields have some text in it. When i focus/ click on any textfield the value previously entered in the textfield disappears. How can I restrict this behavior? Any ideas?

Thanks, TF

+2  A: 

Check Interface Builder. There is a setting to 'clear field before editing' (or something like that).

If you're not using Interface Builder, you can find the name of the property responsible for this behavior in the documentation.

EDIT: I looked it up for you. The property is called

clearsOnBeginEditing
Jongsma
Thanks Jongsma, it worked :)Happy programming
TF