How do you change the clear 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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With