开发者

iphone uitextfield - empties on focus (simple right?)

开发者 https://www.devze.com 2022-12-18 04:47 出处:网络
I have a simple question, I have开发者_JAVA技巧 a UITextField (made from IB), and I would like it not to empty (become \"\") on click, when it gets focus.

I have a simple question, I have开发者_JAVA技巧 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?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消