I want to show a clear button always in a UITextField. I have tried to both set this in .xib Interface Builder:
and in code using this line: [_firstNameField setClearButtonMode:UITextFieldViewModeAlways];
Neither causes the button to show. Help please.
When you set it to UITextFieldViewModeAlways
the clear button appears as long as there is text on the UITextField.
Hope this helps!
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