Am 12.06.2011 um 01:12 schrieb Development:

> According to all the examples I have found the following code should give me 
> the RGB components of any UIColor.CGColor I pass to it....

CGColorGetComponents() will only give you RGB components if the color actually 
*is* a RGB color.

You should check that with CGColorGetColorSpace() beforehand.


Andreas_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to