开发者

iphone textfield focus clears the value

开发者 https://www.devze.com 2022-12-17 04:08 出处:网络
I have 4开发者_如何学Python 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.

I have 4开发者_如何学Python 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


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
0

精彩评论

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