123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120 |
- //
- // PrefixHeader.pch
- // MusicGradeExam
- //
- // Created by Kyle on 2020/7/10.
- // Copyright © 2020 DayaMusic. All rights reserved.
- //
- #ifndef PrefixHeader_pch
- #define PrefixHeader_pch
- #import "Common.h"
- #import "NSString+Extension.h"
- #import "UIColor+Hex.h"
- #import "MBProgressHUD+NJ.h"
- #import "UIViewController+zhStatusBarStyle.h"
- #import "NSDictionary+Extension.h"
- #import "NSString+MD5.h"
- #import "UIView+Layout.h"
- #import "UIImageView+WebCache.h"
- #import "Masonry.h"
- #import "MJRefresh.h"
- #import "KSRequestManager.h"
- #import "IQKeyboardManager.h"
- #import "UserKeyHeader.h"
- #import <UIView+YYAdd.h>
- #import "UIView+ShowProgress.h"
- #import "CustomNavViewController.h"
- #import "UIControl+ButtonAction.h"
- #import "MBProgressHUD+KSShow.h"
- #import "Macro.h"
- // 加密使用 NSString+MD5
- #define DEFAULT_SALT (@"D5sIlPU2")
- #define APPSECRET (@"QuMCIKICAgIH0sCiAgICAicGxhdGZvcm0tZGV2IjogW10")
- #import "KSSafeObject.h"
- //颜色定义
- #define Color_Macro(x, y, z, a) [UIColor colorWithRed:x*1.0f/255.0 green:y*1.0f/255.0 blue:z*1.0f/255.0 alpha:a*1.0f]
- #define DEFAULT_HEIGHT (40)
- #define KObjNull (id)[NSNull null]
- #define UserDefault(_key_) [[NSUserDefaults standardUserDefaults] objectForKey:_key_]
- #define UserDefaultSet(_value_,_key_) ([[NSUserDefaults standardUserDefaults] setValue:_value_ forKey:_key_])
- /**宽度比例*/
- #define HBJ_ScaleWidth(__VA_ARGS__) ([UIScreen mainScreen].bounds.size.width/375)*(__VA_ARGS__)
- /**高度比例*/
- #define HBJ_ScaleHeight(__VA_ARGS__) ([UIScreen mainScreen].bounds.size.height/667)*(__VA_ARGS__)
- /**全局字体*/
- #define GlobelNormalFont(__VA_ARGS__) ([UIFont systemFontOfSize:HBJ_ScaleFont(__VA_ARGS__)])
- /**字体比例*/
- #define HBJ_ScaleFont(__VA_ARGS__) ([UIScreen mainScreen].bounds.size.width/375)*(__VA_ARGS__)
- #define HexRGB(rgbValue) [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 HexRGBAlpha(rgbValue,a) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:(a)]
- //设备屏幕尺寸
- #define kScreen_Height ([UIScreen mainScreen].bounds.size.height)
- #define kScreen_Width ([UIScreen mainScreen].bounds.size.width)
- #define kScreen_Frame (CGRectMake(0, 0 ,kScreen_Width,kScreen_Height))
- #define kScreen_CenterX kScreen_Width/2
- #define kScreen_CenterY kScreen_Height/2
- //应用尺寸(不包括状态栏,通话时状态栏高度不是20,所以需要知道具体尺寸)
- #define kContent_Height ([UIScreen mainScreen].applicationFrame.size.height)
- #define kContent_Width ([UIScreen mainScreen].applicationFrame.size.width)
- #define kContent_Frame (CGRectMake(0, 0 ,kContent_Width,kContent_Height))
- #define kContent_CenterX kContent_Width/2
- #define kContent_CenterY kContent_Height/2
- #define kWIDTH_RATE (375.0 / kScreen_Width)
- #define kHEIGHT_RATE (667.0 / kScreen_Height)
- // Include any system framework and library headers here that should be included in all compilation units.
- // You will also need to set the Prefix Header build setting of one or more of your targets to reference this file.
- //#ifdef DEBUG
- #define hostURL (@"https://test.kj.colexiu.com")
- #define SEALCLASSHOST (@"https://test.kj.colexiu.com/api-im")
- #define WEBHOST (@"https://test.m.kj.colexiu.com")
- #define JSPUSH_ENVIRONMENT (NO)
- #define RCIM_KEY (@"mgb7ka1nme0yg")
- //#define hostURL (@"http://192.168.3.28:8000")
- //#define SEALCLASSHOST (@"http://192.168.3.28:8000/api-im")
- //#define WEBHOST (@"https://test.m.kj.colexiu.com")
- //#define JSPUSH_ENVIRONMENT (NO)
- //#define RCIM_KEY (@"mgb7ka1nme0yg")
- //#define hostURL (@"http://195s22s709.imwork.net")
- //#define SEALCLASSHOST (@"http://195s22s709.imwork.net/api-im")
- //#define WEBHOST (@"https://test.m.kj.colexiu.com")
- //#define JSPUSH_ENVIRONMENT (NO)
- //#define RCIM_KEY (@"mgb7ka1nme0yg")
- //#else // 线上
- //#define hostURL (@"https://kj.colexiu.com")
- //#define SEALCLASSHOST (@"https://kj.colexiu.com/api-im")
- //#define WEBHOST (@"https://m.kj.colexiu.com")
- //#define JSPUSH_ENVIRONMENT (YES)
- //#define RCIM_KEY (@"8w7jv4qb8zuyy")
- //#endif
- // Include any system framework and library headers here that should be included in all compilation units.
- // You will also need to set the Prefix Header build setting of one or more of your targets to reference this file.
- #endif /* PrefixHeader_pch */
|