text: 
  #ifndef THeader_h
  #define THeader_h
  
  //自定义消息业务版本号
  #define SendLocation @"sendLocation"//发送位置
  #define CardLink @"card_link"//卡片消息
  #define GroupCreate @"group_create"
  #define TextLink @"text_link"
  #define AVCall @"av_call"
  #define GroupLive @"group_live"     // 群直播
  
  #define GroupCreate_Version 4       // 创建群自定义消息业务版本
  #define TextLink_Version    4       // 自定义 cell 业务版本（点击跳转官网）
  #define AVCall_Version      4       // 音视频通话业务版本
  
  //推送业务版本号
  #define APNs_Version             1  //推送版本
  #define APNs_Business_NormalMsg  1  //普通消息推送
  #define APNs_Business_Call       2  //音视频通话推送
  
  //信令业务类型
  #define Signal_Business_ID   @"businessID"
  #define Signal_Business_Call @"av_call"  //音视频通话信令
  #define Signal_Business_Live @"av_live"  //音视频直播信令
  
  #define DefaultAvatarImage ([TUIKit sharedInstance].config.defaultAvatarImage)
  #define DefaultGroupAvatarImage ([TUIKit sharedInstance].config.defaultGroupAvatarImage)
  
  #define Screen_Width        [UIScreen mainScreen].bounds.size.width
  #define Screen_Height       [UIScreen mainScreen].bounds.size.height
  #define Is_Iphone (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone)
  #define Is_IPhoneX (Screen_Width >=375.0f && Screen_Height >=812.0f && Is_Iphone)
  
  #define StatusBar_Height    (Is_IPhoneX ? (44.0):(20.0))
  #define TabBar_Height       (Is_IPhoneX ? (49.0 + 34.0):(49.0))
  #define NavBar_Height       (44)
  #define SearchBar_Height    (55)
  #define Bottom_SafeHeight   (Is_IPhoneX ? (34.0):(0))
  #define RGBA(r, g, b, a)    [UIColor colorWithRed:(r)/255.0f green:(g)/255.0f blue:(b)/255.0f alpha:a]
  #define RGB(r, g, b)    [UIColor colorWithRed:(r)/255.0f green:(g)/255.0f blue:(b)/255.0f alpha:1.f]
  
  
  //cell
  #define TMessageCell_Head_Width 45
  #define TMessageCell_Head_Height 45
  #define TMessageCell_Head_Size CGSizeMake(45, 45)
  #define TMessageCell_Padding 8
  #define TMessageCell_Margin 8
  #define TMessageCell_Indicator_Size CGSizeMake(20, 20)
  
  //text cell
  #define TTextMessageCell_ReuseId @"TTextMessageCell"
  #define TTextMessageCell_Height_Min (TMessageCell_Head_Size.height + 2 * TMessageCell_Padding)
  #define TTextMessageCell_Text_PADDING (160)
  #define TTextMessageCell_Text_Width_Max (Screen_Width - TTextMessageCell_Text_PADDING)
  #define TTextMessageCell_Margin 12
  
  //system cell
  #define TSystemMessageCell_ReuseId @"TSystemMessageCell"
  #define TSystemMessageCell_Text_Width_Max (Screen_Width * 0.5)
  #define TSystemMessageCell_Margin 5
  
  //joinGroup cell 继承自 system cell
  #define TJoinGroupMessageCell_ReuseId @"TJoinGroupMessageCell"
  #define TJoinGroupMessageCell_Text_Width_Max (Screen_Width * 0.5)
  #define TJoinGroupMessageCell_Margin 5
  
  //image cell
  #define TImageMessageCell_ReuseId @"TImageMessageCell"
  #define TImageMessageCell_Image_Width_Max (Screen_Width * 0.4)
  #define TImageMessageCell_Image_Height_Max TImageMessageCell_Image_Width_Max
  #define TImageMessageCell_Margin_2 8
  #define TImageMessageCell_Margin_1 16
  #define TImageMessageCell_Progress_Color  RGBA(0, 0, 0, 0.5)
  
  //face cell
  #define TFaceMessageCell_ReuseId @"TFaceMessageCell"
  #define TFaceMessageCell_Image_Width_Max (Screen_Width * 0.25)
  #define TFaceMessageCell_Image_Height_Max TFaceMessageCell_Image_Width_Max
  #define TFaceMessageCell_Margin 16
  
  //file cell
  #define TFileMessageCell_ReuseId @"TFileMessageCell"
  #define TFileMessageCell_Container_Size CGSizeMake((Screen_Width * 0.5)+13, (Screen_Width * 0.15) + 15 + 14)
  #define TFileMessageCell_Margin 10
  #define TFileMessageCell_Progress_Color  RGBA(0, 0, 0, 0.5)
  
  //video cell
  #define TVideoMessageCell_ReuseId @"TVideoMessageCell"
  #define TVideoMessageCell_Image_Width_Max (Screen_Width * 0.4)
  #define TVideoMessageCell_Image_Height_Max TVideoMessageCell_Image_Width_Max
  #define TVideoMessageCell_Margin_3 4
  #define TVideoMessageCell_Margin_2 8
  #define TVideoMessageCell_Margin_1 16
  #define TVideoMessageCell_Play_Size CGSizeMake(35, 35)
  #define TVideoMessageCell_Progress_Color  RGBA(0, 0, 0, 0.5)
  
  //voice cell
  #define TVoiceMessageCell_ReuseId @"TVoiceMessaageCell"
  #define TVoiceMessageCell_Max_Duration 60.0
  #define TVoiceMessageCell_Height TMessageCell_Head_Size.height
  #define TVoiceMessageCell_Margin 12
  #define TVoiceMessageCell_Back_Width_Max (Screen_Width * 0.4)
  #define TVoiceMessageCell_Back_Width_Min 60
  #define TVoiceMessageCell_Duration_Size CGSizeMake(33, 33)
  
  //Location cell
  #define LocationMessageCell_ReuseId @"LocationMessageCell"
  
  //group_live
  #define TGroupLiveMessageCell_ReuseId @"TGroupLiveMessageCell"
  
  //text view
  #define TTextView_Height (50)
  #define TTextView_Button_Size CGSizeMake(30, 30)
  #define TTextView_Margin 9
  #define TTextView_TextView_Height_Min (TTextView_Height - 2 * TTextView_Margin)
  #define TTextView_TextView_Height_Max 80
  
  //face view
  #define TFaceView_Height 180
  #define TFaceView_Margin 12
  #define TFaceView_Page_Padding 20
  #define TFaceView_Page_Height 30
  
  //menu view
  #define TMenuView_Send_Color RGBA(87, 190, 105, 1.0)
  #define TMenuView_Margin 6
  #define TMenuView_Menu_Height 40
  
  //more view
  #define TMoreView_Column_Count 4
  #define TMoreView_Section_Padding 30
  #define TMoreView_Margin 15
  #define TMoreView_Page_Height 30
  
  //menu item cell
  #define TMenuCell_ReuseId @"TMenuCell"
  #define TMenuCell_Margin 6
  #define TMenuCell_Line_ReuseId @"TMenuLineCell"
  #define TMenuCell_Background_Color  RGBA(246, 246, 246, 1.0)
  #define TMenuCell_Background_Color_Dark  RGBA(30, 30, 30, 1.0)
  #define TMenuCell_Selected_Background_Color  RGBA(255, 255, 255, 1.0)
  #define TMenuCell_Selected_Background_Color_Dark  RGBA(41, 41, 41, 1.0)
  
  //more item cell
  #define TMoreCell_ReuseId @"TMoreCell"
  #define TMoreCell_Margin 5
  #define TMoreCell_Image_Size CGSizeMake(70, 70)
  #define TMoreCell_Title_Height 20
  
  //face item cell
  #define TFaceCell_ReuseId @"TFaceCell"
  
  //group member cell
  #define TGroupMemberCell_ReuseId @"TGroupMemberCell"
  #define TGroupMemberCell_Margin 5
  #define TGroupMemberCell_Head_Size CGSizeMake(36, 36)
  #define TGroupMemberCell_Name_Height 20
  
  //conversation cell
  #define TConversationCell_Height 72
  #define TConversationCell_Margin 11
  #define TConversationCell_Margin_Text 12
  
  //AudioCall cell
  #define TUIAudioCallUserCell_ReuseId @"TUIAudioCallUserCell"
  
  //VideoCall cell
  #define TUIVideoCallUserCell_ReuseId @"TUIVideoCallUserCell"
  
  //pop view
  #define TPopView_Arrow_Size CGSizeMake(15, 10)
  #define TPopView_Background_Color RGBA(188, 188, 188, 0.5)
  #define TPopView_Background_Color_Dark RGBA(76, 76, 76, 0.5)
  
  //pop cell
  #define TPopCell_ReuseId @"TPopCell"
  #define TPopCell_Height 45
  #define TPopCell_Margin 18
  #define TPopCell_Padding 12
  
  //unRead
  #define TUnReadView_Margin_TB 2
  #define TUnReadView_Margin_LR 4
  
  //message controller
  #define TMessageController_Header_Height 40
  
  //members controller
  #define TGroupMembersController_Margin 20
  #define TGroupMembersController_Row_Count 5
  
  //add c2c controller
  #define TAddC2CController_Margin 10
  
  //add group controller
  #define TAddGroupController_Margin 15
  
  //add member controller
  #define TAddMemberController_Margin 15
  
  //delete member controller
  #define TDeleteMemberController_Margin 15
  
  
  //add collection cell
  #define TAddCollectionCell_ReuseId @"TAddCollectionCell"
  #define TAddCollectionCell_Margin 10
  #define TAddCollectionCell_Size CGSizeMake(33, 33)
  
  //add cell
  #define TAddCell_ReuseId @"TAddCell"
  #define TAddCell_Height 55
  #define TAddCell_Margin 10
  #define TAddCell_Select_Size CGSizeMake(25, 25)
  #define TAddCell_Head_Size CGSizeMake(38, 38)
  
  //modify view
  #define TModifyView_Background_Color RGBA(188, 188, 188, 0.5)
  #define TModifyView_Background_Color_Dark RGBA(76, 76, 76, 0.5)
  #define TModifyView_Confirm_Color RGBA(44, 145, 247, 1.0)
  
  //record
  #define Record_Background_Color RGBA(0, 0, 0, 0.6)
  #define Record_Background_Size CGSizeMake(Screen_Width * 0.4, Screen_Width * 0.4)
  #define Record_Title_Height 30
  #define Record_Title_Background_Color RGBA(186, 60, 65, 1.0)
  #define Record_Margin 8
  
  //key value cell
  #define TKeyValueCell_ReuseId @"TKeyValueCell"
  #define TKeyValueCell_Indicator_Size CGSizeMake(15, 15)
  #define TKeyValueCell_Margin 10
  #define TKeyValueCell_Height 50
  
  //button cell
  #define TButtonCell_ReuseId @"TButtonCell"
  #define TButtonCell_Height 60
  #define TButtonCell_Margin 12
  
  //switch cell
  #define TSwitchCell_ReuseId @"TSwitchCell"
  #define TSwitchCell_Height 50
  #define TSwitchCell_Margin 10
  
  //personal common cell
  #define TPersonalCommonCell_Image_Size CGSizeMake(80, 80)
  #define TPersonalCommonCell_Margin 10
  #define TPersonalCommonCell_Indicator_Size CGSizeMake(15, 15)
  
  //group common cell
  #define TGroupCommonCell_ReuseId @"TGroupCommonCell"
  #define TGroupCommonCell_Image_Size CGSizeMake(80, 80)
  #define TGroupCommonCell_Margin 10
  #define TGroupCommonCell_Indicator_Size CGSizeMake(15, 15)
  
  //gropu member cell
  #define TGroupMembersCell_ReuseId @"TGroupMembersCell"
  #define TGroupMembersCell_Column_Count 5
  #define TGroupMembersCell_Row_Count 2
  #define TGroupMembersCell_Margin 24
  #define TGroupMembersCell_Image_Size CGSizeMake(60, 60)
  
  //navigationbar indicator view
  #define TNaviBarIndicatorView_Margin 5
  
  // controller commom color
  #define TController_Background_Color RGBA(237, 237, 237, 1.0)
  #define TController_Background_Color_Dark RGBA(25, 25, 25, 1.0)
  
  // title commom color
  #define TText_Color [UIColor blackColor]
  #define TText_Color_Dark RGB(217, 217, 217)
  #define TText_OutMessage_Color_Dark RGB(0, 15, 0)
  
  // cell commom color
  #define TCell_Nomal [UIColor whiteColor]
  #define TCell_Nomal_Dark RGB(35, 35, 35)
  #define TCell_Touched RGB(219, 219, 219)
  #define TCell_Touched_Dark RGB(47, 47, 47)
  #define TCell_OnTop RGB(247, 247, 247)
  #define TCell_OnTop_Dark RGB(47, 47, 47)
  
  // line commom color
  #define TLine_Color RGBA(188, 188, 188, 0.6)
  #define TLine_Color_Dark RGBA(35, 35, 35, 0.6)
  #define TLine_Heigh 0.5
  
  // page commom color
  #define TPage_Color RGBA(222, 222, 222, 1.0)
  #define TPage_Color_Dark RGBA(55, 55, 55, 1.0)
  #define TPage_Current_Color RGBA(125, 125, 125, 1.0)
  #define TPage_Current_Color_Dark RGBA(140, 140, 140, 1.0)
  
  // input view commom color
  #define TInput_Background_Color  RGBA(246, 246, 246, 1.0)
  #define TInput_Background_Color_Dark  RGBA(30, 30, 30, 1.0)
  
  
  //resource
  //#define TUIKitResource(name) [NSString stringWithFormat:@"TUIKitResource.bundle/%@", name]
  //#define TUIKitFace(name) [NSString stringWithFormat:@"TUIKitFace.bundle/%@", name]
  #define TUIKitFace(name) [[NSBundle mainBundle] pathForResource:@"TUIKitFace" ofType:@"bundle"] == nil ? ([[[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent: @"Frameworks/TXIMSDK_TUIKit_iOS.framework/TUIKitFace.bundle"] stringByAppendingPathComponent:name]) : ([[[NSBundle mainBundle] pathForResource:@"TUIKitFace" ofType:@"bundle"] stringByAppendingPathComponent:name])
  #define TUIKitResource(name) [[NSBundle mainBundle] pathForResource:@"TUIKitResource" ofType:@"bundle"] == nil ? ([[[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent: @"Frameworks/TXIMSDK_TUIKit_iOS.framework/TUIKitResource.bundle"] stringByAppendingPathComponent:name]) : ([[[NSBundle mainBundle] pathForResource:@"TUIKitResource" ofType:@"bundle"] stringByAppendingPathComponent:name])
  //#define TUIKitResource(name) name
  //#define TUIKitFace(name) name
  
  
  //notification
  #define TUIKitNotification_TIMRefreshListener @"TUIKitNotification_TIMRefreshListener"
  #define TUIKitNotification_TIMRefreshListener_Add @"TUIKitNotification_TIMRefreshListener_Add"
  #define TUIKitNotification_TIMRefreshListener_Changed @"TUIKitNotification_TIMRefreshListener_Changed"
  #define TUIKitNotification_TIMMessageListener @"TUIKitNotification_TIMMessageListener"
  #define TUIKitNotification_TIMMessageRevokeListener @"TUIKitNotification_TIMMessageRevokeListener"
  #define TUIKitNotification_TIMUploadProgressListener @"TUIKitNotification_TIMUploadProgressListener"
  #define TUIKitNotification_TIMUserStatusListener @"TUIKitNotification_TIMUserStatusListener"
  #define TUIKitNotification_TIMConnListener @"TUIKitNotification_TIMConnListener"
  #define TUIKitNotification_onSelfInfoUpdated @"TUIKitNotification_onSelfInfoUpdated"
  #define TUIKitNotification_onFriendApplicationListAdded @"TUIKitNotification_onFriendApplicationListAdded"
  #define TUIKitNotification_onFriendApplicationListDeleted @"TUIKitNotification_onFriendApplicationListDeleted"
  #define TUIKitNotification_onFriendApplicationListRead @"TUIKitNotification_onFriendApplicationListRead"
  #define TUIKitNotification_onFriendListAdded @"TUIKitNotification_onFriendListAdded"
  #define TUIKitNotification_onFriendListDeleted @"TUIKitNotification_onFriendListDeleted"
  #define TUIKitNotification_onFriendInfoUpdate @"TUIKitNotification_onFriendInfoUpdate"
  #define TUIKitNotification_onBlackListAdded @"TUIKitNotification_onBlackListAdded"
  #define TUIKitNotification_onBlackListDeleted @"TUIKitNotification_onBlackListDeleted"
  #define TUIKitNotification_onRecvMessageReceipts @"TUIKitNotification_onRecvMessageReceipts"
  #define TUIKitNotification_onChangeUnReadCount @"TUIKitNotification_onChangeUnReadCount"
  #define TUIKitNotification_onGroupDismissed @"TUIKitNotification_onGroupDismissed"
  #define TUIKitNotification_onGroupRecycled @"TUIKitNotification_onGroupRecycled"
  #define TUIKitNotification_onKickOffFromGroup @"TUIKitNotification_onKickOffFromGroup"
  #define TUIKitNotification_onLeaveFromGroup @"TUIKitNotification_onLeaveFromGroup"
  #define TUIKitNotification_onReceiveJoinApplication @"TUIKitNotification_onReceiveJoinApplication"
  
  //path
  #define TUIKit_DB_Path [NSHomeDirectory() stringByAppendingString:@"/Documents/com_tencent_imsdk_data/"]
  #define TUIKit_Image_Path [NSHomeDirectory() stringByAppendingString:@"/Documents/com_tencent_imsdk_data/image/"]
  #define TUIKit_Video_Path [NSHomeDirectory() stringByAppendingString:@"/Documents/com_tencent_imsdk_data/video/"]
  #define TUIKit_Voice_Path [NSHomeDirectory() stringByAppendingString:@"/Documents/com_tencent_imsdk_data/voice/"]
  #define TUIKit_File_Path  [NSHomeDirectory() stringByAppendingString:@"/Documents/com_tencent_imsdk_data/file/"]
  
  
  // rich
  #define kDefaultRichCellHeight 50
  #define kDefaultRichCellMargin 8
  #define kRichCellDescColor  [UIColor blackColor]
  #define kRichCellValueColor [UIColor grayColor]
  #define kRichCellTextFont      [UIFont systemFontOfSize:14]
  
  #endif /* THeader_h */
  