I have a UILabel with black color;
i am writing the following code to get black color\'s components.
UIColor *aColor = [aLabel.textColor retain]; con
working exampel with UIColor: CALayer * btnLayer = [myLittleButton layer];
CALayer * btnLayer = [myLittleButton layer];
[layer setBackgroundColor:<#(CGColorRef)#>] becomes: [btnLayer setBorderColor:[[UIColor grayColor] CGColor]];
[layer setBackgroundColor:<#(CGColorRef)#>]
[btnLayer setBorderColor:[[UIColor grayColor] CGColor]];
just make sure the buttons original colors doesnt cover the layer