//聯(lián)系人:石虎QQ: 1224614774昵稱:嗡嘛呢叭咪哄
一、顏色宏定義
// RGB顏色轉(zhuǎn)換(16進(jìn)制->10進(jìn)制)
// RGB顏色轉(zhuǎn)換(16進(jìn)制->10進(jìn)制)
#define UICOLOR_HEX(hexString) [UIColor colorWithRed:((float)((hexString &0xFF0000) >>16))/255.0green:((float)((hexString &0xFF00) >>8))/255.0blue:((float)(hexString &0xFF))/255.0alpha:1.0]
//帶有RGBA的顏色設(shè)置
//帶有RGBA的顏色設(shè)置
#define UICOLOR_RGB(R, G, B, A) [UIColor colorWithRed:R/255.0green:G/255.0blue:B/255.0alpha:A]
//隨機(jī)顏色
//隨機(jī)顏色
#define UICOLOR_RANDOM? [UIColor colorWithRed:(arc4random()%255)/255.0green:(arc4random()%255)/255.0blue:(arc4random()%255)/255.0alpha:1.0]