¡@

Home 

2014/10/15 ¤U¤È 10:13:29

iphone Programming Glossary: rgbvalue

Is Macro Better Than UIColor for Setting RGB Color?

http://stackoverflow.com/questions/1243201/is-macro-better-than-uicolor-for-setting-rgb-color

Macro Better Than UIColor for Setting RGB Color I have this macro in my header file #define UIColorFromRGB rgbValue UIColor colorWithRed float rgbValue & 0xFF0000 16 255.0 green float rgbValue & 0xFF00 8 255.0 blue float rgbValue & 0xFF.. for Setting RGB Color I have this macro in my header file #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 And I am using this.. in my header file #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 And I am using this as something like this in my .m file cell.textColor..

How can I create a UIColor from a hex string?

http://stackoverflow.com/questions/1560081/how-can-i-create-a-uicolor-from-a-hex-string

is with a macro. Just include it in your header and it's available throughout your project. #define UIColorFromRGB rgbValue UIColor colorWithRed float rgbValue 0xFF0000 16 255.0 green float rgbValue 0xFF00 8 255.0 blue float rgbValue 0xFF 255.0.. in your header and it's available throughout your project. #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 uicolor macro with hex values..