I’d like to have a UITextField with a gradient background to make one of the options of my project a bit more visually appealing.
I’m trying to subclass UITextField class overriding initWithFrame, but it doesn’t work. I’ve never tried to subclass a UIControl before so I guess I’m missing something.
Could somebody give me a hand? Thank you in advance!
You can try this answer: iPhone UITextField background color
And add a gradient with CAGradientLayer