Created
March 28, 2016 18:39
-
-
Save isaldin/12e5884a6bd0b9aab8fa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define UIColorFromHex(hexValue) \ | |
[UIColor colorWithRed:((float)((hexValue & 0xFF0000) >> 16))/255.0 \ | |
green:((float)((hexValue & 0x00FF00) >> 8))/255.0 \ | |
blue:((float)((hexValue & 0x0000FF) >> 0))/255.0 \ | |
alpha:1.0] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment