Newer
Older
XinYang_IOS / XYSW / PrefixHeader.pch
@zhangfeng zhangfeng on 7 Dec 2023 1 KB 1.8.0
//
//  PrefixHeader.pch
//  XYSW
//
//  Created by Jim on 2021/9/7.
//

//屏幕宽高
#define KScreenWidth [UIScreen mainScreen].bounds.size.width
#define KScreenHeight [UIScreen mainScreen].bounds.size.height
#define SCREEN_BOUNDS  [UIScreen mainScreen].bounds

#define kUserName [[NSUserDefaults standardUserDefaults] objectForKey:@"userName"]

#define Auto_Width(a)       (((KScreenWidth)/(375))*(a))

#define UIColorFromRGB(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 kColorNaviTintColor        UIColorFromRGB(0xffffff)
#define kColorNavTitleColor         UIColorFromRGB(0x000000)
#define kColorTabBarTint            UIColorFromRGB(0xF4F5F7)

#define IS_IPAD    ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPad)
//判断iPhoneX
#define IS_iPhoneX [Untis isIPhoneXSeries]

#define KNavHeight (IS_iPhoneX ? 88.0 : 64.0)

#define KStatusBarHeight (IS_iPhoneX ? 44.0 : 20.0)

#define KTabbarHeight (IS_iPhoneX ? 83.0 : 49.0)
#define KBottomHeight 34

#define APPURL_DEBUG_INTRANET   @"http://36.133.215.233:9000/logininfo/login"

#ifdef DEBUG

#define APPURL  APPURL_DEBUG_INTRANET  //测试环境

# define DLog(fmt, ...) NSLog((@"[文件名:%s]\n" "[函数名:%s]\n" "[行号:%d] \n" fmt), __FILE__, __FUNCTION__, __LINE__, ##__VA_ARGS__);

#else

#define APPURL  APPURL_DEBUG_INTRANET  //正式环境

#define DLog(...)

#endif

#pragma mark - 相应的Key
#define test NO
#define LocalTest test
#define releaseVersion NO

#define KMBPushAppKey @"m3473ee198c21c"
#define KMBPushAppSecret @"4774b8f9ba3ab08fa7865b7c954eae47"
#define HudDuration 0.75


#ifndef PrefixHeader_pch
#define PrefixHeader_pch


#ifdef __OBJC__
/** 导入文件*/
#import "Untis.h"
#import "Masonry.h"
#import "NSString+JSONExtentsion.h"
#import "UIView+Toast.h"
//#import "YJProgressHUD.h"

#endif

#endif /* PrefixHeader_pch */