Free Mac Color Picker Plugin Makes It Easy To Get The Right UIColor/CGColorRef Code

Copying color values from apps such as Photoshop and inputting the values into your code can get quite tedious.

Here’s a custom color picker plugin from Wade Cosgrove that enhances the default color picker with the ability to export code declarations for UIColor, CGColorRef, NSColor and HTML/CSS color codes.

So you can use the color picker like in this image:

Developer Picker

And have it create UIColor code like this:

UIColor *aColor = [UIColor colorWithHue:0.907 saturation:0.629 brightness:1.000 alpha:1.000];

You can download the developer color picker plugin through the homepage here.

Just drop into your /Library/ColorPickers directory and the extended color picker will appear in apps where you’d normally have the regular color picker.

via @brandontreb

DeliciousTwitterFacebookRedditLinkedInEmail

Original article: Free Mac Color Picker Plugin Makes It Easy To Get The Right UIColor/CGColorRef Code

©2012 iOS App Dev Libraries, Controls, Tutorials, Examples and Tools. All Rights Reserved.

Leave a Reply

Your email address will not be published. Required fields are marked *