#define ColorWithHex(hexValue) \
[UIColor colorWithRed:((float)((hexValue & 0xFF0000) >> 16))/255.0 \
green:((float)((hexValue & 0xFF00) >> 8))/255.0 \
blue:((float)(hexValue & 0xFF))/255.0 \
alpha:1.0]
#define ColorForProfit(profit,textColor) if(profit > 0){textColor = ColorWithHex(COLOR_RED);} \
else if(profit < 0) {textColor = ColorWithHex(COLOR_GREEN);} \
else {textColor = [UIColor whiteColor];} \
#pragma mark -
#pragma mark Nav and TabBar
// NavigationBar背景色
#define kNavigationBarTintColor ColorWithHex(0x323247)
#pragma mark -
#pragma mark 整體風格-基礎背景色啊央、表頭背景色斧蜕、文字紅綠色等
#define kCommonViewBackgroudColor ColorWithHex(0xf4f4f4)
#define kCommonTableCellBackgroudColor ColorWithHex(0xffffff)
#define kCommonTableCellSeperatorColor ColorWithHex(0xf4f4f4)
#define kCommonHeaderBackgroundColor ColorWithHex(0xefefef)
#define kCommoneTextRedColor ColorWithHex(0xfb8160)
#define kCommoneTextGreenColor ColorWithHex(0x0ae843)
最后編輯于 :
?著作權歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者