I have a UILabel with black color;
I am writing the following code to get the black components.
UIColor *aColor = [aLabel.textColor retain]; const CGFloat* components = CGColorGetComponents(aColor.CGColor); CGColorSpaceRef colorSpace=CGColorSpaceCreateDeviceRGB();
but always it gives green components instead of black components;
Does anyone have any ideas about this?
Am I transferring a different color space?
:-( Please help me.
iphone quartz-graphics cgcolor
Ganesh Nov 11 2018-10-11 14:51
source share