oberbaum
oberbaum

Reputation: 2448

iphone uitextfield - empties on focus (simple right?)

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?

Upvotes: 3

Views: 1211

Answers (1)

Vladimir
Vladimir

Reputation: 170829

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.

Upvotes: 8

Related Questions