1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
//
// BaseViewController.h
// Lighting
//
// Created by 曹云霄 on 16/4/27.
// Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface BaseViewController : UIViewController
/**
* 结束刷新
*
* @param TableView Tableview
*/
- (void)endRefreshingForTableView:(UIScrollView *)TableView;
/**
* 获得主体的storyboard对象
*/
+ (UIStoryboard *)getMainStoryboardClass;
/**
获得公告storyboard对象
*/
+ (UIStoryboard *)getAnnouncementStoryboardClass;
/**
获得学习中心storyboard对象
*/
+ (UIStoryboard *)getLearningCenterStoryboardClass;
/**
获得积分storyboard对象
*/
+ (UIStoryboard *)getGuideIntegralStoryboardClass;
/**
* 调用打印机
*/
- (void)callAirprintWithdata:(NSString *)PDFpath SuccessBlock:(void(^)())success ErrorBlock:(void(^)())failed;
/**
* 判断是否有相机权限
*/
+ (BOOL)determineCameraPermissions;
/**
* 判断是否有相册权限
*/
+ (BOOL)determinePhotosPermissions;
/**
* 提示框
*
*/
- (void)promptCustomerTitle:(NSString *)title withMessage:(NSString *)message finish:(void (^)())complete;
/**
* 查询订单状态图片
*/
+ (UIImage *)ReturnOrderStateImageWithStateCode:(NSInteger)ordercode;
/**
* 查询订单状态文本 //code == 0 取文字 code == 1取颜色
*/
+ (id)ReturnOrderStateTitleWithStateCode:(NSInteger)ordercode withPoint:(CGPoint)point WithCode:(NSInteger)code;
/**
* 查询购物车数量
*/
- (void)QueryShoppingCarNumber;
/**
* 查询购物车商品
*/
- (void)queryShoppingCarGoods;
/**
* 系统提示框
*/
- (void)promptCustomerWithString:(NSString *)message;
/**
* 友好化时间
*/
+ (NSString *) compareCurrentTime:(NSString *)str;
/**
* 获取版本号
*/
- (NSString*)getAppVersion;
/**
* 通过面额获取相应的图片
*/
+ (UIImage *)getCorrespondingPictures:(NSInteger)total;
/**
* 判断字符串是否为空
*/
+ (BOOL)isBlankString:(NSString *)string;
/**
* 获取当前时间之前或者之后的时间(之前传入负数)
*/
+ (NSString *)getTimeby:(NSInteger)day;
/**
查询兑奖单state对应文字
*/
+ (id)returnPrizeBillStateTitleColor:(NSString *)stateCode;
/**
考核题型转义
*/
+ (NSString *)returnTopicTypeTitle:(NSString *)typeCode;
/**
选择框
@param message 文本
@param cancel 取消
@param sure 确认
*/
- (void)promptBoxWithMessage:(NSString *)message cancelBlock:(void(^)())cancel sureBlock:(void(^)())sure;
/**
闯关结果状态
@param passResult 闯关结果
@return 状态图片
*/
- (UIImage *)emigratedState:(NSString *)passResult;
/**
保存用户名密码
@param account 用户名
@param passWord 密码
*/
+ (void)saveAccountAndPassWord:(NSString *)account AndPassword:(NSString *)passWord;
/**
删除用户名密码
*/
+ (void)deleteAccountAndPassWord;
/**
比较时间大小
@param dateString 时间字符串
@return 是否比当前时间大
*/
- (int)compareOneDay:(NSDate *)oneDay withAnotherDay:(NSDate *)anotherDay;
/**
转换秒钟
@param totalSeconds 秒数
*/
- (NSString *)timeFormatted:(NSInteger)totalSeconds;
@end