/**************1.环境切换*******************/
#define kProRelease 0
#define kPreRelease 0
#define kDevDug 1
#define kAPIVersion @"1.3"
#if kProRelease
#undef kPreRelease
#undef kDevDug
#define kPreRelease 0
#define kDevDug 0
#elif kPreRelease
#undef kDevDug
#define kDevDug 0
#endif
#ifndef Need_HTTPMacro_h
#define Need_HTTPMacro_h
#if kProRelease
#define kHostAddressURL @"XXX" //生产主机地址
#define kQiNunHostAddressURL @"XXX" //QiNiuNeed
#define ShareHost @"XXX" //分享
#define ShareCheapHost @"XXX" //运营分享团
#elif kPreRelease
#define kHostAddressURL @"XXX" //生产主机地址
#define kQiNunHostAddressURL @"XXX" //QiNiuNeed
#define ShareHost @"XXX" //分享
#define ShareCheapHost @"XXX"
//运营分享团
#else
#if kDevDug
#define kHostAddressURL @"XXX" //测试开发地址
#else
#define kHostAddressURL @"XXX" //开发个人主机地址B
#endif
#define kQiNunHostAddressURL @"XXX" //QiNiuDemo
#define ShareHost @"XXX" //test分享
#define ShareCheapHost @"XXX" //运营分享团
#endif
#define WeakObj(o) autoreleasepool{} __weak typeof(o) o##Weak = o
#define StrongObj(o) autoreleasepool{} __strong typeof(o) o = o##Weak
#define KNavHeight self.navigationController.navigationBar.frame.size.height
#define KStateBarHeight [[UIApplication sharedApplication] statusBarFrame].size.height
#define ScreenWidth ([[UIScreen mainScreen] bounds].size.width)
#define ScreenHeight ([[UIScreen mainScreen] bounds].size.height)
#define RGBA(r,g,b,a) [UIColor colorWithRed:r/255.0 green:g/255.0 blue:b/255.0 alpha:a]
#define RGB(r,g,b) RGBA(r,g,b,1.0f)
#define UIColorWithRGBA(rgbValue,a) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0]
#define UIColorWithRGB(rgbValue) UIColorWithRGBA(rgbValue,1.0f)
[[UIColor blackColor] colorWithAlphaComponent:0.3]
#define kSeparatorLineColor UIColorWithRGB(0xCFCFCF)
/**************3.Debug输出*******************/
#ifdef DEBUG
#define DLog(fmt, ...) NSLog((@"%s [Line %d] " fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__);
#else
#define DLog(...)
#endif
/**************4.系统版本判断*******************/
#define SYSTEM_VERSION_GREATER_THAN(s) ([[[UIDevice currentDevice] systemVersion] compare:s] != NSOrderedAscending )