블로그/아이폰/iOS
UIColor hex코드로 구하기.
EntusApps
2014. 8. 29. 16:45
#define UIColorFromRGB(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0]
사용법
UIColorFromRGB(0xff6600)