I have a UITextField which has an rgb already applied to its background color. I'm trying to set the alpha of the background color. How can I set the alpha without reinserting the whole rgb color in Objective-c?
You can use:
UIColor *color = ...;
color = [color colorWithAlphaComponent:0.5f];
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