1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- //
- // 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)
- //简单setFrame
- #define setxywh 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 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 iOS8 ([UIDevice currentDevice].systemVersion.floatValue >= 8.0f)
- #define iOS10 ([UIDevice currentDevice].systemVersion.floatValue >= 10.0f)
- #define iOS11 @available(iOS 11.0, *)
- #define kDevice_Is_iPhoneX ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(1125,2436), [[UIScreen mainScreen] currentMode].size) : NO)
- //
- #define HUD_MARGIN 20 //默认是20。mb内容到边的距离
- //
- #define unOpenMsg @"暂未开放,敬请期待"
- #define BAIDU_APPKEY @"oGh8jIMr5em4PGjEpGKPyNpyMGjVvGrg"
- typedef void (^BlockTypeVo)(void);
- typedef void (^MyBlockType)(id);
- #endif /* MyDefHeader_h */
|