开发者

How to put a auto delete option in a text field

开发者 https://www.devze.com 2023-01-18 23:55 出处:网络
I want to show gray circle with the white x in the right-side of the field which 开发者_如何学JAVAon click will delete the content of the textfield.I got it. It can be done by setting following proper

I want to show gray circle with the white x in the right-side of the field which 开发者_如何学JAVAon click will delete the content of the textfield.


I got it. It can be done by setting following property: aTextField.clearButtonMode = UITextFieldViewModeAlways;

0

精彩评论

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