Top "Uicolor" questions

A UIColor object represents color and sometimes opacity (alpha value).

What does CGColorGetComponents() return?

CGFloat* colors = CGColorGetComponents(hsbaColor.CGColor); Does this return a float, or an array of floats? It looks like the asterisk …

iphone cocoa-touch core-graphics uicolor cgcolor
How to match UIExtendedSRGBColorSpace to my color values

I set the color for UIButton with the XCode visual editor. I set it using RGB sliders. Then I set …

ios swift uicolor cgcolor cgcolorspace
UIImage from UIColor with alpha

I am trying to create a UIImage from this UIColor value I have. The UIImage is being created, but the …

ios uibutton uiimage uicolor
How to change the color of a UIImage in Swift

I'm in swift and I'm trying to generate a function that takes in a UIImage and a UIColor and returns …

ios swift uiimage uicolor
UIColor transition based on progress value

I have a ProgressBar to which I want to assign a customColor color and based on the progress fade to …

ios objective-c animation uicolor
How to compare two UIColor which have almost same shade or range in iOS?

I have a condition in my app where user can choose 3 colors, but those colors should not match with each …

ios objective-c uicolor color-scheme cgcolor
how to change the color of text in string when I use stringWithFormat function?(iphone)

I am using this in a project, lblDetail.text =[NSString stringWithFormat:@"%@:%@",lblName.text,lblDetail.text]; in this lblName and lblDetail …

iphone ios nsstring uicolor stringwithformat
Swift 2.0 use of undeclared type UIColor

Why can't i use UIColor in Swift 2.0? Makes no sense.

ios swift uicolor