// 获得当前的版本
#define iOS(version) ([UIDevice currentDevice].systemVersion.doubleValue >= (version))
#define ColorA(r, g, b, a) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:(a)/255.0]
#define Color(r, g, b) ColorA((r), (g), (b), 255)
#define RandomColor Color(arc4random_uniform(255), arc4random_uniform(255), arc4random_uniform(255))
时间: 2024-10-10 05:14:26