Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Use NSLog to output a UIColor
CGFloat red, green, blue, alpha;
[color getRed: &red
green: &green
blue: &blue
alpha: &alpha];
NSLog(@"red = %f. Green = %f. Blue = %f. Alpha = %f",
red,
green,
blue,
alpha);
// source: http://iphonedevsdk.com/discussion/comment/408722/#Comment_408722
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.