PrefixHeader.pch 4.77 KB
Newer Older
曹云霄's avatar
曹云霄 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
//
//  PrefixHeader.pch
//  Lighting
//
//  Created by 曹云霄 on 16/4/27.
//  Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//

#ifndef PrefixHeader_pch
#define PrefixHeader_pch
#import "MBProgressHUD.h"
#import "MJRefresh.h"
#import "MMDrawerController.h"
#import "RightViewController.h"
#import "IQKeyboardManager.h"
曹云霄's avatar
曹云霄 committed
16 17
#import "AFNetworking.h"
#import "NetworkRequestClassManager.h"
曹云霄's avatar
曹云霄 committed
18 19 20
#import "NSArray+Objectwithindex.h"
#import "ShoppingViewController.h"
#import "ClientViewController.h"
曹云霄's avatar
曹云霄 committed
21
#import "Masonry.h"
22 23
#import "PopoverViewController.h"
#import "opple_objc_json_client.h"
曹云霄's avatar
曹云霄 committed
24
#import "HENLENSONG.h"
曹云霄's avatar
曹云霄 committed
25 26
#import "JSONModel.h"
#import "Shoppersmanager.h"
27
#import "UIImageView+WebCache.h"
曹云霄's avatar
曹云霄 committed
28
#import "Customermanager.h"
勾芒's avatar
勾芒 committed
29
#import "AppDelegate.h"
勾芒's avatar
勾芒 committed
30
#import "PromptinformationView.h"
勾芒's avatar
勾芒 committed
31 32
#import "BaseViewController.h"
#import "MjRefreshHeaderCustom.h"
勾芒's avatar
勾芒 committed
33
#import "UIScrollView+EmptyDataSet.h"
34 35
#import "NSDictionary+category.h"
#import "CYConstManager.h"
曹云霄's avatar
曹云霄 committed
36
#import "UINavigationController+FDFullscreenPopGesture.h"
曹云霄's avatar
曹云霄 committed
37
#import "UIView+cornerRadius.h"
38
#import "XLPlainFlowLayout.h"
39
#import "MDScratchImageView.h"
曹云霄's avatar
曹云霄 committed
40
#import "WYPopoverController.h"
41
#import "CustomBorderLabel.h"
42
#import "PNCircleChart.h"
43
#import "CustomStudyEntity.h"
44
#import "XBLoadingView.h"
曹云霄's avatar
曹云霄 committed
45 46 47



曹云霄's avatar
曹云霄 committed
48 49 50
// Include any system framework and library headers here that should be included in all compilation units.
// You will also need to set the Prefix Header build setting of one or more of your targets to reference this file.

51 52 53
/**
 *  禁止所有的打印,打包时使用
 */
54 55 56 57 58 59 60
//#ifdef DEBUG
//#define NSLog(...) NSLog(__VA_ARGS__)
//#define debugMethod() NSLog(@"%s", __func__)
//#else
//#define NSLog(...)
//#define debugMethod()
//#endif
61

62 63
#ifdef DEBUG

64
#define NSLog(FORMAT, ...) fprintf(stderr,"%s:%d\t%s\n",[[[NSString stringWithUTF8String:__FILE__] lastPathComponent] UTF8String], __LINE__, [[NSString stringWithFormat:FORMAT, ##__VA_ARGS__] UTF8String]);
65 66 67

#else

68
#define NSLog(...)
69 70 71

#endif

72

曹云霄's avatar
曹云霄 committed
73
/**
74
 *  AppDelegate代理
曹云霄's avatar
曹云霄 committed
75
 */
76
#define SHARED_APPDELEGATE ((AppDelegate *)([UIApplication sharedApplication].delegate))
曹云霄's avatar
曹云霄 committed
77 78 79 80 81 82

/**
 *  导航栏高度
 */
#define NavigationHeight 64

曹云霄's avatar
曹云霄 committed
83 84 85
/**
 *  默认显示头像
 */
曹云霄's avatar
曹云霄 committed
86
#define ReplaceImage [UIImage imageNamed:@"矢量智能对象"]
曹云霄's avatar
曹云霄 committed
87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112

/**
 *  屏幕的物理高度
 */
#define ScreenHeight   [UIScreen mainScreen].bounds.size.height

/**
 *  屏幕的物理宽度
 */
#define ScreenWidth    [UIScreen mainScreen].bounds.size.width

/**
 *  定义UIImage对象
 */
#define TCImage(imageName) [UIImage imageNamed:[NSString stringWithFormat:@"%@",imageName]]

/**
 *  获取RGB颜色
 */
#define kTCColor(r, g, b) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:1.0]

/**
 * 右侧菜单宽度
 */
#define RightWidth 200

113

114
#define ZERO 0
115
#define ONE 1
曹云霄's avatar
曹云霄 committed
116

曹云霄's avatar
曹云霄 committed
117 118 119 120 121
/**
 *  caches路径
 */
#define kPathCaches  [NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES) objectAtIndex:0]

曹云霄's avatar
曹云霄 committed
122 123 124 125 126
/**
 *  断网标示
 */
#define BROKEN @"-1"

曹云霄's avatar
曹云霄 committed
127 128 129
/**
 *  主题蓝色
 */
130 131
#define kMainBlueColor [UIColor colorWithRed:89/255.0 green:172/255.0 blue:220/255.0 alpha:1.0]

曹云霄's avatar
曹云霄 committed
132 133 134
/**
 *  默认圆角系数
 */
曹云霄's avatar
曹云霄 committed
135
#define kCornerRadius 4
曹云霄's avatar
曹云霄 committed
136 137


138 139 140 141
/**
 *  主题灰色
 */
#define kMainGrayColor [UIColor colorWithRed:241/255.0 green:241/255.0 blue:241/255.0 alpha:1.0]
曹云霄's avatar
曹云霄 committed
142 143


曹云霄's avatar
曹云霄 committed
144 145 146
/**
 *  筛选框复选按钮圆角尺寸
 */
曹云霄's avatar
曹云霄 committed
147
#define kSelectedCornerRadius 25
曹云霄's avatar
曹云霄 committed
148

149
/**
150
 *  服务器开发地址
151
 */
152
#define SERVERREQUESTURL(URL)  [NSString stringWithFormat:@"http://139.196.195.30:8090/opple-web/app%@",URL]
153

曹云霄's avatar
曹云霄 committed
154

曹云霄's avatar
曹云霄 committed
155
/**
156
 *  服务器测试地址
曹云霄's avatar
曹云霄 committed
157
 */
158
//#define SERVERREQUESTURL(URL)  [NSString stringWithFormat:@"http://dg-dev.opple.com/opple-web/app%@",URL]
159

160
//**
161 162
// *  服务器正式地址
// */
曹云霄's avatar
曹云霄 committed
163
//#define SERVERREQUESTURL(URL)  [NSString stringWithFormat:@"http://dg.opple.com/opple-web/app%@",URL]
曹云霄's avatar
曹云霄 committed
164

勾芒's avatar
勾芒 committed
165 166 167 168
/**
 *  搜索框输入通知
 */
#define SEARCHSTRING @"SEARCHINPUTSTRING"
曹云霄's avatar
曹云霄 committed
169

勾芒's avatar
勾芒 committed
170 171 172 173
/**
 *  搜索框返回根视图
 */
#define POPROOTCONTROLLER @"POPROOTCONTROLLER"
曹云霄's avatar
曹云霄 committed
174

勾芒's avatar
勾芒 committed
175 176 177 178
/**
 *  储存本地的搜索历史文件名
 */
#define SEARCHHISTORY @"searchhistory"
曹云霄's avatar
曹云霄 committed
179

勾芒's avatar
勾芒 committed
180 181 182 183 184 185
/**
 *  默认图
 */
#define REPLACEIMAGE [UIImage imageNamed:@"bg-img 副本"]


勾芒's avatar
勾芒 committed
186 187 188 189
/**
 *  保存用户名key
 */
#define USERNAME @"username"
勾芒's avatar
勾芒 committed
190

勾芒's avatar
勾芒 committed
191 192 193 194
/**
 *  保存密码key
 */
#define PASSWORD @"password"
勾芒's avatar
勾芒 committed
195

勾芒's avatar
勾芒 committed
196 197 198
/**
 *  网络请求返回个数
 */
199
#define KROWS 12
勾芒's avatar
勾芒 committed
200 201


曹云霄's avatar
曹云霄 committed
202
#define RGB(A, B, C, D)    [UIColor colorWithRed:(A)/255.0 green:(B)/255.0 blue:(C)/255.0 alpha:(D)]
勾芒's avatar
勾芒 committed
203

勾芒's avatar
勾芒 committed
204 205 206 207
/**
 * 一键分享显示文本
 */
#define ShareTitle @"欧立方体验中心一键分享"
勾芒's avatar
勾芒 committed
208

曹云霄's avatar
曹云霄 committed
209 210 211 212 213
/**
 *  无数据友好图片
 */
#define kNoDataImage TCImage(@"圆角矩形-3-副本")

214 215 216 217
/**
 *  登陆超时通知
 */
#define LOGINTIMEOUT @"logintimeout"
曹云霄's avatar
曹云霄 committed
218

曹云霄's avatar
曹云霄 committed
219 220 221 222 223
/**
 *  弱引用
 */
#define WS(weakSelf)  __weak __typeof(&*self)weakSelf = self

224 225 226 227
/**
 *  更新版本通知
 */
#define UPLOADVERSION @"uploadVersion"
曹云霄's avatar
曹云霄 committed
228

曹云霄's avatar
曹云霄 committed
229 230 231 232
/**
 *  网络断开
 */
#define NETWORK @"网络已断开"
曹云霄's avatar
曹云霄 committed
233 234 235



236

曹云霄's avatar
曹云霄 committed
237
#endif /* PrefixHeader_pch */