// // AICity.pch // AICity // // Created by wei.z on 2019/7/16. // Copyright © 2019 wei.z. All rights reserved. // #ifndef AICity_pch #define AICity_pch #define kScreenWidth [UIScreen mainScreen].bounds.size.width #define kScreenHeight [UIScreen mainScreen].bounds.size.height #define SCREEN_WIDTH [UIScreen mainScreen].bounds.size.width #define kScreenBounds [UIScreen mainScreen].bounds #define UIColorWithRGB(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 UIColorWithRGBA(r,g,b,a) [UIColor colorWithRed:r/255.0 green:g/255.0 blue:b/255.0 alpha:a] #define RGBACOLOR(r,g,b,a) [UIColor colorWithRed:r/255.0 green:g/255.0 blue:b/255.0 alpha:a] //#define iphoneX ([[UIScreen mainScreen] bounds].size.height>736.0f) /** *状态栏高度 */ #define STATE_BAR_NORMAL [[UIApplication sharedApplication] statusBarFrame].size.height /** *导航栏高度 */ #define NAV_HEIGHT (iphoneX ? 88 : 64) /** *tabbar高度 */ #define BAR_HEIGHT (iphoneX ? 83 : 49) #define safetop (iphoneX ? 44 : 0) #define safebottom (iphoneX ? 34 : 0) #define nkScreenWidthRatio (kScreenWidth / 375.0) #define nkScreenHeightRatio (iphoneX ? nkScreenWidthRatio : (kScreenHeight / 667.0)) #define nAdaptedWidthValue(x) (ceilf((x) * nkScreenWidthRatio)) #define nAdaptedHeightValue(x) (ceilf((x) * nkScreenHeightRatio)) #define nAdaptedCommonValue(x) (ceilf((x) * nkScreenWidthRatio)) #define nAdaptedSystemFontWithSize(R) [UIFont systemFontOfSize:(nAdaptedWidthValue(R))] #define nAdaptedBoldSystemFontWithSize(R) [UIFont boldSystemFontOfSize:(nAdaptedWidthValue(R))] #define COLOR(a,b,c,d) [UIColor colorWithRed:a/255.0 green:b/255.0 blue:c/255.0 alpha:d] #define rgba(a,b,c,d) [UIColor colorWithRed:a/255.0 green:b/255.0 blue:c/255.0 alpha:d] #define iphoneX ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? ((NSInteger)(([[UIScreen mainScreen] currentMode].size.height/[[UIScreen mainScreen] currentMode].size.width)*100) == 216) : NO) #define ISIPHONE_X ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? ((NSInteger)(([[UIScreen mainScreen] currentMode].size.height/[[UIScreen mainScreen] currentMode].size.width)*100) == 216) : NO) /// 导航栏高度 #define KNavBarHeight ISIPHONE_X ? 88 : 64 #define kAPPDelegate ((ZFAppDelegate*)[[UIApplication sharedApplication] delegate]) /// 播放器view的tag,列表中UI控件唯一tag值 #define kPlayerViewTag 100 #ifndef BASE_API_URL #define BASE_API_URL @"http://192.168.110.66:8888/" #endif #import #import "UINavigationController+FDFullscreenPopGesture.h" #import "RequestTool.h" #import "UserModel.h" #import #import #import "MBProgressHUD+MJ.h" #import "GDNavigationController.h" #import "MJExtension.h" #endif /* AICity_pch */