新建PCH文件以及常用宏定义




$(SRCROOT)/项目名/pch文件名.pch
//0-255的随机数
#define randint arc4random() % 256
//随机色
#define randColor [UIColor colorWithRed:randint/255.0 green:randint/255.0 blue:randint/255.0 alpha:1.0]




$(SRCROOT)/项目名/pch文件名.pch
//0-255的随机数
#define randint arc4random() % 256
//随机色
#define randColor [UIColor colorWithRed:randint/255.0 green:randint/255.0 blue:randint/255.0 alpha:1.0]