开发者

Clear button color on text field

开发者 https://www.devze.com 2022-12-21 05:44 出处:网络
How do you change the c开发者_JAVA技巧lear button color of a UITextField?You want to use rightView and rightViewMode.Use a button and add an image that is a red clear button.Then add your target and p

How do you change the c开发者_JAVA技巧lear button color of a UITextField?


You want to use rightView and rightViewMode. Use a button and add an image that is a red clear button. Then add your target and perform your logic.

rightViewRectForBounds will also return the size of the button for the rightView.

0

精彩评论

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