MYFactoryManager.h 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. //
  2. // MYFactoryManager.h
  3. // GoHiking_app
  4. //
  5. // Created by dwl on 17/10/13.
  6. // Copyright (c) 2017年 dwl. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import <UIKit/UIKit.h>
  10. //tool
  11. //#import "MYFactoryManager.h"
  12. #import "UIView+ST.h"
  13. #import "AlgorithmTool.h"
  14. #import "UIColor+Hex.h"
  15. //蓝牙
  16. #import <CoreBluetooth/CoreBluetooth.h>
  17. #import "BTDataProcess.h"
  18. //蓝牙提供的sdk算法
  19. #define LEFT_FOOT_OC 1
  20. #define RIGHT_FOOT_OC 2
  21. //蓝牙框架封装
  22. #import "LEONBLManager.h"
  23. #import "BTDataSend.h"
  24. #import "BTDataAnalysis.h"
  25. #import "CBPeripheral+ADName.h"
  26. #define BTDataInstance [BTDataProcess sharedInstance]
  27. #define LEManager [LEONBLManager sharedInstance]
  28. //http
  29. #import "HTTPDataProcession.h"
  30. #import "UserFriendsModel.h"
  31. //第三方
  32. #import "AFNetworking.h"
  33. #import "MBProgressHUD.h"
  34. //UI
  35. #import "SearchDeviceViewController.h"
  36. #import "FriendsListViewController.h"
  37. #import "MainLoadingView.h"
  38. #import "ViceLoadingView.h"
  39. #import "PopupView.h"
  40. #import "NoDeviceTip.h"
  41. #import <AudioToolbox/AudioToolbox.h>
  42. #import "DebugView.h"
  43. #import "CacheTool.h"
  44. /*************************** 获取屏幕 宽度、高度 ***************************/
  45. #define SCREEN_WIDTH ([UIScreen mainScreen].bounds.size.width)
  46. #define SCREEN_HEIGHT ([UIScreen mainScreen].bounds.size.height)
  47. /*************************** 状态栏+导航栏 高度 ***************************/
  48. #define getRectNavAndStatusHight self.navigationController.navigationBar.frame.size.height+[[UIApplication sharedApplication] statusBarFrame].size.height
  49. #define getTarbarHight (SCREEN_HEIGHT>=812?83:49)
  50. /*************************** 比例系数布局 ***************************/
  51. #define SCALEoefficient(num) (SCREEN_WIDTH/667.0)*(num)
  52. #define SCALE_HIGHT_oefficient(num) (SCREEN_HEIGHT/375.0)*(num)
  53. /*************************** 字号大小 ***************************/
  54. #define SCALEoefficient_20 20.0*(SCREEN_WIDTH/320.0)///<大标题
  55. #define SCALEoefficient_18 18.0*(SCREEN_WIDTH/320.0)///<附标题
  56. #define SCALEoefficient_16 16.0*(SCREEN_WIDTH/320.0)///<中标题
  57. #define SCALEoefficient_14 14.0*(SCREEN_WIDTH/320.0)///<小标题
  58. //app跳转 用户信息
  59. #define IOSSDK_USERINFO @"iosSdk_userInfo"
  60. //缓存的步频数据
  61. #define IOSSDK_MOTIONCOUNT @"iosSdk_motionCount"
  62. //custom System UserDefaults
  63. #define IOS_NSUSERDEFAULT [NSUserDefaults standardUserDefaults]
  64. #define CUS_NOTIFICATIONCENTER [NSNotificationCenter defaultCenter]
  65. //log
  66. //#ifdef DEBUG
  67. //#define NSLog(...) NSLog(@"%s 第%d行 \n %@\n\n",__func__,__LINE__,[NSString stringWithFormat:__VA_ARGS__])
  68. //#else
  69. //#define NSLog(...)
  70. //#endif
  71. @interface MYFactoryManager : NSObject
  72. @property (nonatomic,assign) UIBackgroundTaskIdentifier bgTask;
  73. #pragma mark -- UI
  74. //单例
  75. +(instancetype)sharedInstance;
  76. //边框
  77. + (void)makeBoundsWithView:(UIView *)view color:(UIColor *)color width:(CGFloat)width;
  78. //圆角
  79. + (void)clipsToBoundsWithView:(UIView *)view Radius:(NSInteger)radius;
  80. //正常加载还是打包后sdk加载
  81. +(UIImage*)imageString:(NSString*)imageName;
  82. @end