// // MyDefHeader.h // LNManager // // Created by EchoShacolee on 2017/4/6. // Copyright © 2017年 lee. All rights reserved. // #ifndef MyDefHeader_h #define MyDefHeader_h // #define KWINDOW [UIApplication sharedApplication].keyWindow #define MYAPPDELEGATE ((AppDelegate* )[[UIApplication sharedApplication]delegate]) // #define kSize [[UIScreen mainScreen]bounds].size #define kFrame [[UIScreen mainScreen]bounds] #define kStatusHeight (kSize.height == 812.0 ? 44 : 20) #define kTabBarHeight (kSize.height == 812.0 ? 83 : 49) #define kNavOffSet (kSize.height == 812.0 ? 88 : 64) #define SafeAreaBottomHeight (kSize.height == 812.0 ? 34 : 0) //版本判定 #define iOS8 ([UIDevice currentDevice].systemVersion.floatValue >= 8.0f) #define iOS10 ([UIDevice currentDevice].systemVersion.floatValue >= 10.0f) #define iOS11 @available(iOS 11.0, *) //简单setFrame #define KSetxywh initWithFrame:CGRectMake(x, y, w, h) #define setDIYFrame CGRectMake(x, y, w, h) #define FontLarger 21 #define FontTitle 18 #define Font17 17 #define NormalFont 15 #define SmallFont 10 // //#define KBackGroundColor [UIColor colorWithRed:247/255.0 green:247/255.0 blue:247/255.0 alpha:1] //#define CGCOLOR_LINE [UIColor colorWithRed:136/255.0f green:136/255.0f blue:136/255.0f alpha:1].CGColor #define RGB_COLOR(R, G, B) [UIColor colorWithRed:((R) / 255.0f) green:((G) / 255.0f) blue:((B) / 255.0f) alpha:1.0f] #ifdef RGB_COLOR//(R, G, B) #define COLOR_THEME RGB_COLOR(40, 152, 255) #define KBackGroundColor RGB_COLOR(247, 247, 247) #define CGCOLOR_LINE RGB_COLOR(136,136,136).CGColor #endif // #define HUD_MARGIN 20 //默认是20。mb内容到边的距离 // #define unOpenMsg @"暂未开放,敬请期待" typedef void (^BlockTypeVo)(void); typedef void (^MyBlockType)(id); #endif /* MyDefHeader_h */