// // 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 #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 #import "NSTimer+XRTimer.h" #import "ACBaseViewController.h" #import "UIView+AdaptScreen.h" #import "ZZTableViewCell.h" #import //#import "ReactiveObjC.h" #import "UICommon.h" #import "YYKit.h" #import "DeviceSwitchover.h" #import "MyUILabel.h" #import //#import ///** @brief 实时音视频呼叫 */ //#define KNOTIFICATION_CALL @"callOutWithChatter" ///** @brief 关闭实时音视频 */ //#define KNOTIFICATION_CALL_CLOSE @"callControllerClose" //高德地图 Key #define AMapKey @"9718a5f1e68018d744c320336d0c6571" //当前设备 系统版本 #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) // 适配iPhone X 导航栏高度 #define iPhoneX_NavHeight (iPhoneX ? 88.f : 64.f) #define iPhoneX_TabbarSafeBottomMargin (iPhoneX ? 34.f : 0.f) /// 透明 #define KKClearColor [UIColor clearColor] /// 白色 #define KKWhiteColorColor [UIColor whiteColor] //底部高度 #define TabBarHeight (self.tabBarController.tabBar.frame.size.height) #define DefineFontSize [UIFont systemFontOfSize:14] #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) // 字体 #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 @"小霸王" //小霸王 //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 #define F(string, args...) [NSString stringWithFormat:string, args] //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 [NSString stringWithFormat:@"%@%@",xBaseUrl,@"/getway/useragreement_tx"] //隐私政策 #define PrivacyPolicyURLStr [NSString stringWithFormat:@"%@%@",xBaseUrl,@"/getway/privacypolicy"] //二维码丢失 #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 #import #import #endif #endif /* PrefixHeader_pch */