// // KXHeader.h // QBCS // // Created by kuxuan on 2017/6/6. // Copyright © 2017年 kuxuan. All rights reserved. // #ifndef KXHeader_h #define KXHeader_h //定义屏幕的宽度 #define SCREEN_WIDTH ([UIScreen mainScreen].bounds.size.width<[UIScreen mainScreen].bounds.size.height?[UIScreen mainScreen].bounds.size.width:[UIScreen mainScreen].bounds.size.height) //定义屏幕的高度 #define SCREEN_HEIGHT ([UIScreen mainScreen].bounds.size.width>[UIScreen mainScreen].bounds.size.height?[UIScreen mainScreen].bounds.size.width:[UIScreen mainScreen].bounds.size.height) #define IOS7_OR_LATER ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7.0) #define IOS11_OR_LATER ([[[UIDevice currentDevice] systemVersion] floatValue] >= 11.0) #define StatusBarHeight [KXGetHeightTool getStatusBarHeight] #define NavHeight [KXGetHeightTool getNavigationBarHeight] #define safeBottomHeight [KXGetHeightTool getSafeBottom] #define TabbarHeight [KXGetHeightTool gettabbarHeight] #define VIEW_HEIGHT SCREEN_HEIGHT-safeBottomHeight #define SCREEN_MUTI (SCREEN_WIDTH/375.0) #define Fitsize(X) (SCREEN_WIDTH/375.0) * X /*******做***包***修改***这里***就***行***了******************/ //还需要改plist中小米push的两个值 #define UMAPP_KEY @"5b06579ea40fa37cae000213" #define KXCOMPANY @"这个公司" #define KXCOMPANY_SERVICE @"公司客服" #define KXCOMPANY_ENGLISH @"这个公司english" #define KXCHANNEL_ID @"20129" #define KXAPPSTORE_ADDRESS [NSString stringWithFormat:@"itms-apps://itunes.apple.com/cn/app//id%@?mt=8",@"1271312320"] #define KXSUPORTURL @"网址信息:http://sdjd.726p.com/" // 1 代表过审 0线上 #define KXAPPSTATUS 1 /****************************************************************/ #define LAST_RUN_VERSION_KEY @"last_run_version" #define MAX_ID @"max_id" #define LEADING_SPACE 14 #define USER_NAME @"user_name" #define USER_PASSWORD @"user_password" #define USER_TOKEN @"user_token" #define ONLINE @"online" #define KXNETREACHABLE @"reachable" #define KXNETUNREACHABLE @"unreachable" #define KXNETHASCHANGED @"getnetwork" #define KXADVERTISEMENTKEY @"KXADVERTISEMENTKEY" #define KXADVERTISEMENTID_OLD @"KXASVERTISEMENTID_OLD" //旧的广告 #define KXADVERTISEMENTID_NEW @"KXADVERTISEMENTID_NEW" //新的广告 #define KXFIRSTLAUNNCH @"KXFIRSTLAUNNCH" //第一次登录 #define KXREGISTER_SECRET @"Y08D2SQPWJF5X1TC7EZ6MILH4GVBUAKRN93O" #define KXADALERTKEY @"KXADALERTKEY" //弹框广告 #define KXMARK_TODAY @"KXMARK_TODAY" //评分是否是今天 #define KXMARK_CLICKCOUNT @"KXMARK_CLICKCOUNT" // 3.0的弹出次数 #define KXMARK_TOAPPSTORE @"KXMARK_TOAPPSTORE" // 3.0判断是点击了关闭还是去苹果商店,然后在不同的时间之后给弹框 #define FONT_SYS(x) [UIFont systemFontOfSize:x] #define FONT_BOLD(x) [UIFont boldSystemFontOfSize:x] #define equalTo(...) mas_equalTo(__VA_ARGS__) #define WS(weakSelf) __unsafe_unretained __typeof(&*self)weakSelf = self; #define kRegularFontName @"PingFangSC-Regular" #define kMediumFontName @"PingFangSC-Medium" #define kSemiboldFontName @"PingFangSC-Semibold" #define FootprintArray [[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) lastObject] stringByAppendingPathComponent:@"FootprintArray.plist"] /*************************过审页面用到*******************/ static NSString *const kOrderArray = @"kOrderArray"; #endif /* KXHeader_h */