// 1.日志开关
#ifdef DEBUG
#define ILLog(...) NSLog(__VA_ARGS__)
#else
#define ILLog(...)
#endif
// 2.判断是否为iOS7
#define iOS7 ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7.0)
// 3.获得颜色
#define ILColor(r, g, b) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:1]
// 4.加载JSON对象
#define ILJson(name) [NSJSONSerialization JSONObjectWithData:[NSData dataWithContentsOfURL:[[NSBundle mainBundle] URLForResource:@#name withExtension:nil]] options:NSJSONReadingAllowFragments error:nil]
// 5.全局背景色
#define ILGlobalBg [UIColor colorWithPatternImage:[UIImage imageNamed:@"bg"]]
// 6.是否为4英寸
#define is4Inch ([UIScreen mainScreen].bounds.size.height == 568.0)
// 7.是否为retina
#define isRetina ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? ([[UIScreen mainScreen] currentMode].size.width == 640) : NO)
#ifdef DEBUG
#define ILLog(...) NSLog(__VA_ARGS__)
#else
#define ILLog(...)
#endif
// 2.判断是否为iOS7
#define iOS7 ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7.0)
// 3.获得颜色
#define ILColor(r, g, b) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:1]
// 4.加载JSON对象
#define ILJson(name) [NSJSONSerialization JSONObjectWithData:[NSData dataWithContentsOfURL:[[NSBundle mainBundle] URLForResource:@#name withExtension:nil]] options:NSJSONReadingAllowFragments error:nil]
// 5.全局背景色
#define ILGlobalBg [UIColor colorWithPatternImage:[UIImage imageNamed:@"bg"]]
// 6.是否为4英寸
#define is4Inch ([UIScreen mainScreen].bounds.size.height == 568.0)
// 7.是否为retina
#define isRetina ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? ([[UIScreen mainScreen] currentMode].size.width == 640) : NO)