//
|
// HDLUtlis.h
|
// HDL_Widget_iOS
|
//
|
// Created by HDL on 2019/8/27.
|
// Copyright © 2019 JLChen. All rights reserved.
|
//
|
|
#define TP_SYSTEM_VERSION ([[[UIDevice currentDevice] systemVersion] floatValue])
|
//#define IOS6 ([[[UIDevice currentDevice] systemVersion] floatValue] < 7.0)
|
#define IOS7 (TP_SYSTEM_VERSION >= 7.0)
|
#define IOS8 (TP_SYSTEM_VERSION >= 8.0)
|
#define IOS9 (TP_SYSTEM_VERSION >= 9.0)
|
#define IOS10 (TP_SYSTEM_VERSION >= 10.0)
|
|
//是否是IPhoneX的设备
|
#define IPhoneX ([[UIScreen mainScreen] bounds].size.height == 812)
|
|
// Screen
|
#define APP_SCREEN_BOUNDS [[UIScreen mainScreen] bounds]
|
#define APP_SCREEN_HEIGHT (APP_SCREEN_BOUNDS.size.height)
|
#define APP_SCREEN_WIDTH (APP_SCREEN_BOUNDS.size.width)
|
#define APP_STATUS_FRAME [UIApplication sharedApplication].statusBarFrame
|
|
#define APP_TOP_BAR_HEIGHT (IPhoneX ? 88 : (IOS7 ? 64 : 44))
|
#define APP_STATUS_BAR_HEIGHT (IPhoneX ? 44: (IOS7 ? 20 : 0))
|
#define APP_STATUS_BAR_HEIGHT_TURE (IPhoneX ? 44: (IOS7 ? 0 : 0))
|
#define APP_TOOL_BAR_HEIGHT 49
|
#define APP_TAB_BAR_HEIGHT (IPhoneX ? (49 + 34): 49)
|
#define APP_CONTENT_WIDTH (APP_SCREEN_BOUNDS.size.width)
|
#define APP_BUTTOM_HEIGHT (IPhoneX ? 34: 0)
|
#define APP_CONTENT_HEIGHT (APP_SCREEN_HEIGHT - APP_TOP_BAR_HEIGHT - APP_TAB_BAR_HEIGHT)
|
#define APP_VISIBLE_HEIGHT (APP_SCREEN_HEIGHT - APP_TOP_BAR_HEIGHT - APP_BUTTOM_HEIGHT)
|
#define APP_B_HEIGHT (APP_SCREEN_HEIGHT - APP_BUTTOM_HEIGHT)
|
#define APP_UIFont @"PingFangSC-Regular"
|
#define APP_UIFont_BOLD @"PingFangSC-Semibold"
|
|
|
|
#define TextColor HEXCOLORA(0x333333, 1.0)
|
#define TextSelectColor HEXCOLORA(0xFB744A, 1.0)
|
/** WEAKSELF_AT */
|
#define WEAKSELF_AT __weak __typeof(&*self)weakSelf_AT = self;
|
#define HEXCOLORA(rgbValue, a) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16)) / 255.0 green:((float)((rgbValue & 0xFF00) >> 8)) / 255.0 blue:((float)(rgbValue & 0xFF)) / 255.0 alpha:a]
|
|
#import <Foundation/Foundation.h>
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
@interface GDHDLUtlis : NSObject
|
|
@end
|
|
NS_ASSUME_NONNULL_END
|