开发者

iphone textfield focus clears the value

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜