宏定义

2017-08-29  本文已影响14人  xieyinghao

define mDeviceWidth [UIScreen mainScreen].bounds.size.width

define mDeviceHeight [UIScreen mainScreen].bounds.size.height

define mRGB(r,g,b,a) [UIColor colorWithRed:(r)/255.0f green:(g)/255.0f blue:(b)/255.0f alpha:a]

define mHexRGB(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]

define mHexRGBAlpha(rgbValue,a) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:(a)]

define fontHightRedColor mHexRGB(0xeb3027) //字体深红色

define fontHightColor mHexRGB(0x585858) //字体深色

define fontNomalColor mHexRGB(0x999999) //字体浅色

上一篇 下一篇

猜你喜欢

热点阅读