title: How to get color components of a CGColor correctly
body: <p>I have a UILabel with black color;</p>
  
  <p>i am writing the following code to get black color's components.</p>
  
  <pre><code>UIColor *aColor = [aLabel.textColor retain];
  const CGFloat* components = CGColorGetComponents(aColor.CGColor);
  CGColorSpaceRef colorSpace=CGColorSpaceCreateDeviceRGB();
  </code></pre>
  
  <p>but always this is giving Green color components instead of black color components;</p>
  
  <p>Is any one have idea about this?</p>
  
  <p>Am i passing different color space?</p>
  
  <p>:-(  Please help me.</p>