3

I have a simple question, I have a UITextField (made from IB), and I would like it not to empty (become "") on click, when it gets focus. I cant find the setting, what/where is it?

oberbaum
  • 2,451
  • 7
  • 36
  • 52

1 Answers1

8

In IB there's "Clear when editing begins" checkbox for this setting.
Or you can set it in code setting clearsOnBeginEditing property to the corresponding value.

Vladimir
  • 170,431
  • 36
  • 387
  • 313