You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

211 lines
6.8 KiB

//
// PrefixHeader.pch
// watch
//
// Created by WeiChaoZheng on 2017/10/27.// Copyright © 2017年 xTT. All rights reserved.
//
#ifndef PrefixHeader_pch
#define PrefixHeader_pch
#ifdef __OBJC__
#import "LGAlertView.h"
#import "PPGetAddressBook.h"
#import "SVProgressHUD.h"
#import <UIImageView+WebCache.h>
#import "tongxin-Bridging-Header.h"
//#import "tongxin-Swift.h"
#import "ZKUDID.h"
#import "UIView+Tools.h"
#import "myHelper.h"
#import "YBPopupMenu.h"
#import "UIView+ViewController.h"
#import "UIView+Extension.h"
#import "JX_GCDTimerManager.h"
#import "NSString+Character.h"
#import <Masonry/Masonry.h>
#import "NSTimer+XRTimer.h"
#import "ACBaseViewController.h"
#import "UIView+AdaptScreen.h"
#import "ZZTableViewCell.h"
#import <YYModel/YYModel.h>
#import <ZXNavigationBarController.h>
#import "YYKit.h"
#import "UIViewExt.h"
#import <DZNEmptyDataSet/UIScrollView+EmptyDataSet.h>
#import "MyUILabel.h"
#import "UIView+Effects.h"
#import <EasyShowView/EasyShowView.h>
//#import <Hyphenate/Hyphenate.h>
///** @brief 实时音视频呼叫 */
//#define KNOTIFICATION_CALL @"callOutWithChatter"
///** @brief 关闭实时音视频 */
//#define KNOTIFICATION_CALL_CLOSE @"callControllerClose"
//高德地图 Key
#define AMapKey @"b6cf7f135712cd1584e607620ea7024b"
//当前设备 系统版本
#define CurrentSystemVersion [[UIDevice currentDevice] systemVersion]
//导航栏高度
#define getRectNavAndStatusHight  (self.navigationController.navigationBar.frame.size.height+[[UIApplication sharedApplication] statusBarFrame].size.height)
#define IS_IPHONE (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone)
#define IS_IOS_11 ([[[UIDevice currentDevice] systemVersion] floatValue] >= 11.f)
#define IS_IPHONE_X (IS_IOS_11 && IS_IPHONE && (MIN([UIScreen mainScreen].bounds.size.width, [UIScreen mainScreen].bounds.size.height) >= 375 && MAX([UIScreen mainScreen].bounds.size.width, [UIScreen mainScreen].bounds.size.height) >= 812))
#define iPhoneX (IS_IPHONE_X ? YES : NO)
#define iPhoneX_TabbarSafeBottomMargin (iPhoneX ? 34.f : 0.f)
//底部高度
#define TabBarHeight (self.tabBarController.tabBar.frame.size.height)
// 适配iPhone X 导航栏高度
#define iPhoneX_NavHeight (iPhoneX ? 88.f : 64.f)
#define MJStatusBarHeight (iPhoneX ? 44.f : 20.f)
#define MJStatusAndNavHeight (iPhoneX_NavHeight)
#define DefineFontSize [UIFont systemFontOfSize:16]
#define WeakSelf typeof(self) __weak weakSelf = self;
#define SearchHistory @"searchHistory"
#define ScreenWidth [UIScreen mainScreen].bounds.size.width
#define ScreenHeight [UIScreen mainScreen].bounds.size.height
//不同屏幕尺寸适配,UI : 750x1334
#define kScreenWidthRatio (ScreenWidth / 375.0)
#define kScreenHeightRatio (ScreenWidth / 667.0)
#define AdaptedWidth(x) ceilf((x) * kScreenWidthRatio)
#define AdaptedHeight(x) ceilf((x) * kScreenHeightRatio)
#define AdaptedFontSize(R) AdaptedWidth(R)
#define Adapted(x) ceilf((x) * kScreenWidthRatio)
/// 字体黑 51
#define KKTextBlackColor51 RGBA(51, 51, 51, 1)
#define KKTextBlackColor RGBA(20, 20, 20, 1)
/// 灰163
#define KKGrey163 RGB(163, 163, 163)
// 背景灰
#define KKBackgroundGrey RGB(248, 247, 247)
/// 透明
#define KKClearColor [UIColor clearColor]
/// 白色
#define KKWhiteColorColor [UIColor whiteColor]
// 字体
#define Font_(x) [UIFont fontWithName:@"HelveticaNeue" size: x]
#define FontBold_(x) [UIFont fontWithName:@"HelveticaNeue-Bold" size: x]
#define ImageName_(string) [UIImage imageNamed:string]
#define FontADA_(x) [UIFont fontWithName:@"HelveticaNeue" size: Adapted(x)]
#define FontBoldADA_(x) [UIFont fontWithName:@"HelveticaNeue-Bold" size: Adapted(x)]
#define TargetName @"lekangshouhu" //作业帮手表
//lekang
#define WXAPPID @"wxc0ca3e7f672ac786"
#define WXAPPSecret @"009bbe40ee4b6a6f8a1b413a2989167a"
#define kStringIsEmpty(str) ([str isKindOfClass:[NSNull class]] || str == nil || [str length] < 1 ? YES : NO )
//app的版本号
#define kTOKEN_APP_VERSION [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleShortVersionString"]
//app 的Bundle ID
#define kTOKEN_APP_BUNDLEID [[NSBundle mainBundle] bundleIdentifier]
//app 的时区
#define kTOKEN_APP_TIMEZONE [NSTimeZone localTimeZone].description
//app 的语言
#define kTOKEN_APP_LANGUAGE [NSLocale preferredLanguages].firstObject
//APP 在屏幕上显示的名字
#define APPName [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleDisplayName"]
//获取标志 每一天第一次登录的标志
#define FirstEveryDayKey @"FirstEveryDayKey"
#define kLocalVideo_Width AdaptW(121.0f)
#define kLocalVideo_Height AdaptW(162.0f)
//记录供应商配置Key 内容是 字典 Dic
#define kSupplierConfigKey @"kSupplierConfigKey"
//记录广告的key 内容是 字典 Dic
#define kNewADKey @"kNewADKey"
//阅读记录Key
#define kReadRecordArrKey @"ReadRecordArrKey"
// 是否记住密码
#define kifRememberPWDKey @"ifRememberPWDKey"
// 记录国家代码 和电话号码列表的 key
#define kCountryCodeListKey @"CountryCodeListKey"
// 记录 选择 国家代码 和电话号码列表的 key
#define kSelectCountryCodeKey @"SelectCountryCodeKey"
// 获取国家列表的 时间 如果本地存在,就一天获取一次
#define kgetCountryListTime @"kgetCountryListTime"
#define UserDefaults [NSUserDefaults standardUserDefaults]
// 选择 国家 时的通知
#define kSelectCountryNotification @"SelectCountryNotification"
// 选择关系 时的 通知
#define kSelectContactNotification @"SelectContactNotification"
// 消息中心的通知
#define AccountMessageNotification @"accountMessage"
// 无网络点击图片刷新的 通知
#define NoReachableRefreshNotification @"NoReachableRefreshNotification"
//用户协议
#define AccoutXieYiURLStr @"http://4g.watch.ecellsz.com:8080/app/useragreement.html"
//隐私政策
#define PrivacyPolicyURLStr @"http://4g.watch.ecellsz.com:8080/app/privacypolicy.html"
//二维码丢失
#define QRcodeLostURLStr [NSString stringWithFormat:@"%@%@",xBaseUrl,@"/getway/qrcode_tx"]
//活动页面
#define ActivityURLStr [NSString stringWithFormat:@"%@%@",xBaseUrl,@"/getway/tx_activity/index_search.html"]
// 通话时间 和 视频ID 的记录 Key
#define VideoTimeAndIDAndWHRecordKey @"VideoTimeAndIDAndWHRecordKey"
// 心率和体温测量倒计时时间Key
//心率
#define HeartMeasurementTimeKey @"HeartMeasurementTimeKey"
//体温
#define TempMeasurementTimeKey @"TempMeasurementTimeKey"
typedef NS_ENUM(NSInteger,SharePlatform){
/// 微信朋友圈
SharePlatform_Timeline = 0,
/// 微信好友
SharePlatform_Session = 1,
};
#import "APHandleManager.h"
#import <WXApi.h>
#import <WXApiObject.h>
#import <FSCalendar.h>
#import "UICommon.h"
#endif
#endif /* PrefixHeader_pch */