美文网首页
随机色的宏

随机色的宏

作者: 失忆的程序员 | 来源:发表于2018-12-11 11:17 被阅读15次

/** 随机色的宏 */

#define random(r, g, b, a) [UIColor colorWithRed:(r)/255.0green:(g)/255.0blue:(b)/255.0alpha:(a)/255.0]

#define randomColor random(arc4random_uniform(256), arc4random_uniform(256), arc4random_uniform(256), arc4random_uniform(256))

相关文章

网友评论

      本文标题:随机色的宏

      本文链接:https://www.haomeiwen.com/subject/qnsshqtx.html