Top "Uicolor" questions

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

How to initialize UIColor from RGB values properly?

I am working on an iPhone application which uses various colors. When user selects the particular color button I set …

uibutton rgb uicolor
How do I create a UIColor from RGBA?

I want to use NSAttributedString in my project, but when I'm trying to set color, which isn't from the standard …

ios objective-c rgb nsattributedstring uicolor
How to convert HEX RGB color codes to UIColor?

I have an RGB hex code like #ffffff as NSString and want to convert that into an UIColor. Is there …

iphone uicolor
Converting UIColor to CGColor in swift

This is the Obj-C code: CGContextSetStrokeColorWithColor(context, [[UIColor lightGrayColor] CGColor]); How do I write it in swift.

objective-c swift colors uicolor
Extracting rgb from UIColor

Seen this asked before but my example does not seem to work. const CGFloat *toCol = CGColorGetComponents([[UIColor greenColor] CGColor]); The …

iphone core-graphics uicolor cgcolor
Get Slightly Lighter and Darker Color from UIColor

I was looking to be able to turn any UIColor into a gradient. The way I am intending to do …

objective-c ios core-graphics gradient uicolor
How to change the color of an UIImage

I want not to change the backgroundColor of an UIImage, but rather to change the color of the whole image. …

ios uiimage uicolor
Android Button Drawable Tint

Is it possible to tint the drawableLeft in an android button? I have a black drawable I'd like to tint …

android android-layout drawable uicolor
colorWithAlphaComponent example in Swift

What is the correct syntax for this function in Swift? The following works fine, and colors the background purple: self.…

ios swift alpha uicolor
Adjust alpha of UIColor

I set a UIColor using rgb to a background of a UILabel. I'm trying to adjust the alpha only. How …

ios objective-c alpha uicolor