码迷,mamicode.com
首页 > 移动开发 > 详细

ios 随机色 宏定义

时间:2015-05-14 11:48:55      阅读:813      评论:0      收藏:0      [点我收藏+]

标签:

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

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

 

#define RandColor RGBColor(arc4random_uniform(255), arc4random_uniform(255), arc4random_uniform(255))

 

#define NoteCenter [NSNotificationCenter defaultCenter]

  

ios 随机色 宏定义

标签:

原文地址:http://www.cnblogs.com/songxing10000/p/4502661.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!