Reputation: 11
The clear button of UITextField gets hidden in iOS 9, it was working perfectly till now in all other iOS versions. I tried out everything from the below links :
(1). UITextField Clear Button Does Not Show (2). How to change the tint color of the clear button on a UITextField (3). UITextField clearButtonMode color
The button does not show up till we hover the mouse over its position. In storyboard, I have selected "appears while editing" option and even tried "is always visible" option, but still the same.
I don't want to create custom button, so please let me know is there anything wrong in iOS 9 or what else can be done to resolve.
Waiting for a positive reply.
Thanks !!
Upvotes: 1
Views: 799
Reputation: 1254
Check the property for the specific button, textfield where you have declared, whether you had mentioned property as "Weak". If at all you have mentioned as weak please change it to "Strong".
Upvotes: 1