Predefine.h 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. //
  2. // Predefine.h
  3. // WFChat UIKit
  4. //
  5. // Created by WF Chat on 2017/10/29.
  6. // Copyright © 2017年 WildFireChat. All rights reserved.
  7. //
  8. #ifndef Predefine_h
  9. #define Predefine_h
  10. #define IOS_SYSTEM_VERSION_LESS_THAN(v) \
  11. ([[[UIDevice currentDevice] systemVersion] \
  12. compare:v \
  13. options:NSNumericSearch] == NSOrderedAscending)
  14. #define RGBCOLOR(r, g, b) [UIColor colorWithRed:(r) / 255.0f green:(g) / 255.0f blue:(b) / 255.0f alpha:1]
  15. #define RGBACOLOR(r, g, b, a) [UIColor colorWithRed:(r) / 255.0f green:(g) / 255.0f blue:(b) / 255.0f alpha:(a)]
  16. #define HEXCOLOR(rgbValue) \
  17. [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16)) / 255.0 \
  18. green:((float)((rgbValue & 0xFF00) >> 8)) / 255.0 \
  19. blue:((float)(rgbValue & 0xFF)) / 255.0 \
  20. alpha:1.0]
  21. #define SDColor(r, g, b, a) [UIColor colorWithRed:(r / 255.0) green:(g / 255.0) blue:(b / 255.0) alpha:a]
  22. #define Global_tintColor [UIColor colorWithRed:0 green:(190 / 255.0) blue:(12 / 255.0) alpha:1]
  23. #define Global_mainBackgroundColor SDColor(248, 248, 248, 1)
  24. #define TimeLineCellHighlightedColor [UIColor colorWithRed:92/255.0 green:140/255.0 blue:193/255.0 alpha:1.0]
  25. #define DAY @"day"
  26. #define NIGHT @"night"
  27. #define kMessageListChanged @"kMessageListChanged"
  28. #define WFZOOM_PRIVATE_CONFERENCE_ID @"WFZOOM_PRIVATE_CONFERENCE_ID"
  29. #define kCONFERENCE_DESTROYED @"kCONFERENCE_DESTROYED"
  30. //如果您不需要voip功能,请在ChatUIKit工程中关掉voip功能,然后修改WFChat-Prefix-Header.h中WFCU_SUPPORT_VOIP为0
  31. //ChatUIKit关闭voip的方式是,找到ChatUIKit工程下的Predefine.h头文件,定义WFCU_SUPPORT_VOIP为0,
  32. //再删除掉ChatUIKit工程的WebRTC和WFAVEngineKit的依赖。
  33. //删除掉应用工程中的WebRTC.framework和WFAVEngineKit.framework这两个库。
  34. #define WFCU_SUPPORT_VOIP 1
  35. #define WFCString(key) [[NSBundle bundleForClass:[self class]] localizedStringForKey:key value:@"" table:@"wfc"]
  36. //对讲功能开关,在Chat工程也有同样的一个开关,需要保持同步
  37. //#define WFC_PTT
  38. #endif /* Predefine_h */