Clear button color in text box

How do you change the color of the UITextField cleanup button?

+6
iphone uitextfield
source share
1 answer

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

rightViewRectForBounds will also return the button size for the rightView .

+4
source share

All Articles