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

// 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

 

posted on 2016-05-12 21:12  爱你久久iOS  阅读(165)  评论(0编辑  收藏  举报

导航