78 lines
3.0 KiB
Plaintext
Executable File
78 lines
3.0 KiB
Plaintext
Executable File
//
|
|
// SPPrefixHeader.pch
|
|
// SweetParty
|
|
//
|
|
// Created by bj_szd on 2022/5/31.
|
|
//
|
|
|
|
#ifndef SPPrefixHeader_pch
|
|
#define SPPrefixHeader_pch
|
|
|
|
#import "Global.h"
|
|
#import "BJConst.h"
|
|
|
|
//通知登录融云
|
|
#define kLoginSucessNotification @"kLoginSucessNotification"
|
|
#define KRemoveConversation @"KRemoveConversation"
|
|
#define kRealNameAuthentication @"kRealNameAuthentication"
|
|
|
|
//cell 间距
|
|
#define MLTrendCellMargin 5
|
|
//文字内容的Y值
|
|
#define MLTrendCellTextMaxY 130
|
|
|
|
//底部工具条的高度
|
|
#define MLTrendCellBottomBarH 45
|
|
//声音控件的高度
|
|
#define MLTrendCellVoiceH 40
|
|
// 图片控件最大高度
|
|
#define MLTrendCellPictureMaxH 1000
|
|
|
|
#define shareURL @"
|
|
|
|
#define SAFE_AREA_INSERTS_BOTTOM [HGDeviceHelper safeAreaInsetsBottom]
|
|
#define SAFE_AREA_INSERTS_TOP [HGDeviceHelper safeAreaInsetsTop]
|
|
#define TOP_BAR_HEIGHT (SAFE_AREA_INSERTS_TOP + NAVIGATION_BAR_HEIGHT)
|
|
|
|
#define STATUS_BAR_HEIGHT [UIApplication sharedApplication].statusBarFrame.size.height
|
|
static CGFloat const NAVIGATION_BAR_HEIGHT = 44;
|
|
/** notificationName */
|
|
#define IsEnablePersonalCenterVCMainTableViewScroll @"IsEnablePersonalCenterVCMainTableViewScroll"
|
|
#define CurrentSelectedChildViewControllerIndex @"CurrentSelectedChildViewControllerIndex"
|
|
#define PersonalCenterVCBackingStatus @"PersonalCenterVCBackingStatus"
|
|
//图片宽度
|
|
#define MLTrendCellOnePicWidth [UIScreen mainScreen].bounds.size.width / 2
|
|
#define MLTrendCellTagsH 20
|
|
#define MoreThanOnePicWidth ([UIScreen mainScreen].bounds.size.width - 40-50)/3
|
|
|
|
|
|
#define DEMOLog(format, ...) printf(" | %s(line:%d) | %s %s", [[[NSString stringWithUTF8String:__FILE__] lastPathComponent] UTF8String], __LINE__, __PRETTY_FUNCTION__, [[NSString stringWithFormat:(format), ##__VA_ARGS__] UTF8String] )
|
|
|
|
#define mRGB(r,g,b,a) [UIColor colorWithRed:(r)/255.0f green:(g)/255.0f blue:(b)/255.0f alpha:a]
|
|
#define mHexRGB(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 mHexRGBAlpha(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)]
|
|
#define fontHightColor mHexRGB(0x3c3c3c) //字体深色
|
|
#define fontNomalColor mHexRGB(0xa0a0a0) //字体浅色
|
|
#define TableViewBackGroundColor [UIColor colorWithRed:238/255.0 green:238/255.0 blue:238/255.0 alpha:1];
|
|
#define bjColor mHexRGB(0xe4e4e4) //背景灰色
|
|
#define bjGreenColor mHexRGB(0x9C67FF) //背景灰色
|
|
|
|
#define borderCol mHexRGB(0xe4e4e4) //border颜色
|
|
typedef NS_ENUM(NSInteger, KeyBoardStatus) {
|
|
statusKeyboard,
|
|
statusVoice,
|
|
statusInit
|
|
|
|
};
|
|
|
|
|
|
#define MAXRECORDTIME 60
|
|
#define MINRECORDTIME 1
|
|
|
|
static NSString *const TXIMUnreadMessageNoti = @"TXIMUnreadMessageNoti";
|
|
static NSString *const TXIMLogoutMessageNoti = @"TXIMLogoutMessageNoti";
|
|
static NSString *const TXIMLogoutLoadMessageNoti = @"TXIMLogoutLoadMessageNoti";
|
|
static NSString *const TXIMDinghaoNoti = @"TXIMDinghaoNoti";
|
|
|
|
#endif /* SPPrefixHeader_pch */
|