首页 > 移动平台 > 详细

自定义Log+判断是否为iOS7+获得RGB颜色-01-整体

时间:2016-05-13 13:24:38      阅读:200      评论:0      收藏:0      [点我收藏+]
// 1.判断是否为iOS7
#define iOS7 ([[UIDevice currentDevice].systemVersion doubleValue] >= 7.0)

// 2.获得RGB颜色
#define IWColor(r, g, b) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:1.0]

// 3.自定义Log
#ifdef DEBUG
#define IWLog(...) NSLog(__VA_ARGS__)
#else
#define IWLog(...)
#endif

 

#ifdef __OBJC__

 #endif

 

自定义Log+判断是否为iOS7+获得RGB颜色-01-整体

原文:http://www.cnblogs.com/foreveriOS/p/5487347.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!