Header.h 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. //
  2. // Header.h
  3. // Haishenghai-master
  4. //
  5. // Created by GG on 2018/12/29.
  6. // Copyright © 2018年 Haishenghai intelligence network technology. All rights reserved.
  7. //
  8. #ifndef Header_h
  9. #define Header_h
  10. #ifdef DEBUG
  11. //Debug状态下的测试API
  12. //#define BASE_URL @"http://47.110.138.172/hsh_app/"
  13. //#define PICBASE_URL @"http://fubangyun.com:4445/"
  14. //#define BASE_URL @"http://172.16.15.252:1551/"
  15. //#define PICBASE_URL @"http://172.16.15.252:1029/"
  16. #else
  17. //Release状态下的线上API
  18. //#define BASE_URL @"https://www.hsh-iot.com/test/hsh_app"
  19. //#define PICBASE_URL @"http://fubangyun.com:4445/"
  20. //#define BASE_URL @"http://172.16.15.252:1551/"
  21. //#define PICBASE_URL @"http://172.16.15.252:1029/"
  22. #endif
  23. /* define */
  24. #define ALERTSHOW(errorMessage) UIAlertController *_controller =[UIAlertController alertControllerWithTitle:@"温馨提示" message:errorMessage preferredStyle:UIAlertControllerStyleAlert];[_controller addAction:[UIAlertAction actionWithTitle:@"确定" style:UIAlertActionStyleDefault handler:nil]];[self presentViewController:_controller animated:YES completion:nil];
  25. //登录用的
  26. //rgb颜色转换
  27. #define SXUIColorFromRGB(rgbValue) [UIColor \
  28. colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 \
  29. green:((float)((rgbValue & 0xFF00) >> 8))/255.0 \
  30. blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0]
  31. //屏幕尺寸
  32. #define WIDTH [UIScreen mainScreen].bounds.size.width
  33. #define HEIGHT [UIScreen mainScreen].bounds.size.height
  34. //状态栏高度
  35. #define kStatusBarHeight [[UIApplication sharedApplication] statusBarFrame].size.height
  36. #define kNavBarHeight 44.0
  37. #define kTabBarHeight ([[UIApplication sharedApplication] statusBarFrame].size.height>20?83:49)
  38. #define kTopHeight (kStatusBarHeight + kNavBarHeight)
  39. #define IS_iPhoneX ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(1125, 2436), [[UIScreen mainScreen] currentMode].size) : NO)/* header file */
  40. #import "MBProgressHUD.h"
  41. #import "NSMutableDictionary+NullSaf.h"
  42. #import <Masonry.h>
  43. #import <AFHTTPSessionManager.h>
  44. #import "AppDelegate.h"
  45. #import "ViewController.h"
  46. #import "UserLogin_VC.h"
  47. #import "UserRegister_VC.h"
  48. #import "ResetPassword_VC.h"
  49. #import "Addplace_VC.h"
  50. #import "AddDevece_VC.h"
  51. #import "popViewController.h"
  52. #import "CollectionViewCell.h"
  53. #import "DeveceList_VC.h"
  54. #import "Message_VC.h"
  55. #import "Person_VC.h"
  56. #import "ScanViewController.h"
  57. #import "DeveceDetail_VC.h"
  58. #import "PlaceList_VC.h"
  59. #import "ManageDeveceList_VC.h"
  60. #import "DetailTableViewCell.h"
  61. #import "FireAlarm_VC.h"
  62. #import "PushManage_VC.h"
  63. #import "ProblemViewController.h"
  64. #import "Service_VC.h"
  65. #import "DetailDeveceList_VC.h"
  66. #import "Contacts_VC.h"
  67. #import "Recorddetail_VC.h"
  68. #import "FireManage_VC.h"
  69. #import "SubmitInformation_VC.h"
  70. #import "CommitMessage_VC.h"
  71. #import "PlaceDetail_VC.h"
  72. #import "popMenuView.h"
  73. #import <MJRefresh.h>
  74. #import "DataSourceManager.h"
  75. #import <AMapFoundationKit/AMapFoundationKit.h>
  76. #import <MAMapKit/MAMapKit.h>
  77. #import <AMapSearchKit/AMapSearchKit.h>
  78. #import <AMapLocationKit/AMapLocationKit.h>
  79. #import <FLAnimatedImageView+WebCache.h>
  80. #import "About_VC.h"
  81. #import "Setting_VC.h"
  82. #import "detatilDeviceModel.h"
  83. #import "Protcol_VC.h"
  84. #import "privacy_VC.h"
  85. #endif /* Header_h */