wealon
我是wealon 专注于iOS 移动App开发

导航

 
关于颜色的宏定义
 
// 根据指定的 RGB 创建 UIColor
#define RGB(r, g, b) ([UIColor colorWithRed:(r / 255.0) green:(g / 255.0) blue:(b / 255.0) alpha:1.0])
/// 创建随机颜色
#define RandomColor (RGB(arc4random_uniform(256), arc4random_uniform(256), arc4random_uniform(256)))
posted on 2016-03-04 09:46  wealon  阅读(202)  评论(0编辑  收藏  举报