1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- //
- // JZHeader.h
- // JIZHANG
- //
- // Created by kuxuan on 2017/10/19.
- // Copyright © 2017年 kuxuan. All rights reserved.
- //
- #ifndef JZHeader_h
- #define JZHeader_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 IOS8_OR_LATER ([[[UIDevice currentDevice] systemVersion] floatValue] >= 8.0)
- #define IOS11_OR_LATER ([[[UIDevice currentDevice] systemVersion] floatValue] >= 11.0)
- #define iPhoneX ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(1125, 2436), [[UIScreen mainScreen] currentMode].size) : NO)
- #define StatusBarHeight (iPhoneX ? 44.f : 20.f)
- #define TabbarHeight (iPhoneX ? (49.f+34.f) : 49.f)
- #define NavHeight (iPhoneX ? 88.f : 64.f)
- #define safeBottomHeight (iPhoneX ? 34.f : 0)
- #define VIEW_HEIGHT SCREEN_HEIGHT-safeBottomHeight
- /*上新包需要改的东西*************************************/
- //记得要去JZUMShareManager.h 中改声明
- //渠道号
- #define JZCHANNEL_ID @"2003"
- //苹果商店id
- #define JZAPPSTORE_ID @"1318048929"
- //友盟id
- #define UMAPP_KEY @"5a14e6b9f29d9819e60000a4"
- /********************************************************/
- #define JZTOKEN @"JZUSER_TOKEN" //用户登录token
- #define JZNEWTOKEN @"JZNEWTOKEN" //绑定用户用的token
- #define JZPHONE @"JZUSER_PHONE" //用户手机号
- #define JZUSERNAME @"JZUSER_NAME" //用户昵称
- #define JZGENDER @"JZUSER_GENDER" //用户性别
- #define JZLoginMode @"JZLoginMode"
- #define JZWeixinNickName @"JZWeixinNickName"
- #define JZWeixinSex @"JZWeixinSex"
- #define JZWeixinImage @"JZWeixinImage"
- #define JZiosSahreUrl @"JZiosSahreUrl"
- #define JZtuxiangData @"JZtuxiangData"
- #define JZTokenInvalid @"JZTokenInvalid"
- #define JZMarkTime @"JZMarkTime"
- #define JZMarkTitle @"JZMarkTitle"
- #define JZHomeUPdateApp @"JZHomeUPdateApp"
- static NSString *const JZREMOVECOMUPGRADEVIEW = @"removeComUpgradeview";
- static NSString *const JZOPENTOUCHID = @"JZOpenTouchID";
- static NSString *const JZNEEDTOUCHID = @"JZNeedTouchID";
- static NSString *const JZWxBangPhone = @"JZWxBangPhone";
- static NSString *const JZFirstLogin = @"JZFirstLogin";
- static NSString *const JZHomeNotice = @"JZHomeNotice";
- static NSString *const JZHomeCheckAppFlow = @"JZHomeCheckAppFlow";
- static NSString *const JZNEWUSER_160 = @"JZNEWUSER_160";
- static NSString *const JZNEWREMARK_TIME = @"JZNEWREMARK_TIME";
- static NSString *const JZFIRSTNOTE = @"JZFIRSTNOTE"; //首次记账通知
-
- #define JZAPPSTORE_ADDRESS [NSString stringWithFormat:@"itms-apps://itunes.apple.com/cn/app//id%@?mt=8",JZAPPSTORE_ID]
- #define SCREEN_MUTI (SCREEN_WIDTH/375.0)
- #define Leading_space 14 //基本间距
- #define FitSize(x) (SCREEN_WIDTH/375.0)*x
- #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;
- static NSString *const JZGESTURE_HASSET = @"JZGESTURE_HASSET";
- static NSString *const JZBUDGET_HASSET = @"JZBUDGET_HASSET";
- static NSString *const JZBUDGET_POINT = @"JZBUDGET_POINT";
- static NSString *const JZCLOSE_BUDGET = @"JZCLOSE_BUDGET";
- static NSString *const JZOUTPUTEMAIL = @"JZOUTPUTEMAIL";
- #endif /* JZHeader_h */
|