| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- //
- // Header.h
- // Haishenghai-master
- //
- // Created by GG on 2018/12/29.
- // Copyright © 2018年 Haishenghai intelligence network technology. All rights reserved.
- //
- #ifndef Header_h
- #define Header_h
- #ifdef DEBUG
- //Debug状态下的测试API
- //#define BASE_URL @"http://47.110.138.172/hsh_app/"
- //#define PICBASE_URL @"http://fubangyun.com:4445/"
- //#define BASE_URL @"http://172.16.15.252:1551/"
- //#define PICBASE_URL @"http://172.16.15.252:1029/"
- #else
- //Release状态下的线上API
- //#define BASE_URL @"https://www.hsh-iot.com/test/hsh_app"
- //#define PICBASE_URL @"http://fubangyun.com:4445/"
- //#define BASE_URL @"http://172.16.15.252:1551/"
- //#define PICBASE_URL @"http://172.16.15.252:1029/"
- #endif
- /* define */
- #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];
- //登录用的
- //rgb颜色转换
- #define SXUIColorFromRGB(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 WIDTH [UIScreen mainScreen].bounds.size.width
- #define HEIGHT [UIScreen mainScreen].bounds.size.height
- //状态栏高度
- #define kStatusBarHeight [[UIApplication sharedApplication] statusBarFrame].size.height
- #define kNavBarHeight 44.0
- #define kTabBarHeight ([[UIApplication sharedApplication] statusBarFrame].size.height>20?83:49)
- #define kTopHeight (kStatusBarHeight + kNavBarHeight)
- #define IS_iPhoneX ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(1125, 2436), [[UIScreen mainScreen] currentMode].size) : NO)/* header file */
- #import "MBProgressHUD.h"
- #import "NSMutableDictionary+NullSaf.h"
- #import <Masonry.h>
- #import <AFHTTPSessionManager.h>
- #import "AppDelegate.h"
- #import "ViewController.h"
- #import "UserLogin_VC.h"
- #import "UserRegister_VC.h"
- #import "ResetPassword_VC.h"
- #import "Addplace_VC.h"
- #import "AddDevece_VC.h"
- #import "popViewController.h"
- #import "CollectionViewCell.h"
- #import "DeveceList_VC.h"
- #import "Message_VC.h"
- #import "Person_VC.h"
- #import "ScanViewController.h"
- #import "DeveceDetail_VC.h"
- #import "PlaceList_VC.h"
- #import "ManageDeveceList_VC.h"
- #import "DetailTableViewCell.h"
- #import "FireAlarm_VC.h"
- #import "PushManage_VC.h"
- #import "ProblemViewController.h"
- #import "Service_VC.h"
- #import "DetailDeveceList_VC.h"
- #import "Contacts_VC.h"
- #import "Recorddetail_VC.h"
- #import "FireManage_VC.h"
- #import "SubmitInformation_VC.h"
- #import "CommitMessage_VC.h"
- #import "PlaceDetail_VC.h"
- #import "popMenuView.h"
- #import <MJRefresh.h>
- #import "DataSourceManager.h"
- #import <AMapFoundationKit/AMapFoundationKit.h>
- #import <MAMapKit/MAMapKit.h>
- #import <AMapSearchKit/AMapSearchKit.h>
- #import <AMapLocationKit/AMapLocationKit.h>
- #import <FLAnimatedImageView+WebCache.h>
- #import "About_VC.h"
- #import "Setting_VC.h"
- #import "detatilDeviceModel.h"
- #import "Protcol_VC.h"
- #import "privacy_VC.h"
- #endif /* Header_h */
|