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

#import <UIKit/UIKit.h>

@interface BaseViewController : UIViewController

13 14 15



曹云霄's avatar
曹云霄 committed
16 17 18 19 20 21 22 23 24 25 26
/**
 *  结束刷新
 *
 *  @param TableView Tableview
 */
- (void)endRefreshingForTableView:(UIScrollView *)TableView;


/**
 *  MBProgressHUD等待视图
 */
27
- (void)CreateMBProgressHUDLoding;
曹云霄's avatar
曹云霄 committed
28 29 30 31

/**
 *  移除MBProgressHUD等待视图
 */
32
- (void)RemoveMBProgressHUDLoding;
曹云霄's avatar
曹云霄 committed
33 34 35 36 37 38

/**
 *  渐隐提示框待回调Block
 */
- (void)SHOWPrompttext:(NSString *)Text ComcpleteBlock:(void(^)())completed;

曹云霄's avatar
曹云霄 committed
39
/**
曹云霄's avatar
曹云霄 committed
40
 *  获得主体的storyboard对象
曹云霄's avatar
曹云霄 committed
41
 */
曹云霄's avatar
曹云霄 committed
42
+ (UIStoryboard *)getMainStoryboardClass;
曹云霄's avatar
曹云霄 committed
43

曹云霄's avatar
曹云霄 committed
44 45 46 47
/**
 获得公告storyboard对象
 */
+ (UIStoryboard *)getAnnouncementStoryboardClass;
曹云霄's avatar
曹云霄 committed
48

曹云霄's avatar
曹云霄 committed
49 50 51 52 53
/**
 获得学习中心storyboard对象
 */
+ (UIStoryboard *)getLearningCenterStoryboardClass;

54 55 56 57 58
/**
 获得积分storyboard对象
 */
+ (UIStoryboard *)getGuideIntegralStoryboardClass;

曹云霄's avatar
曹云霄 committed
59 60 61
/**
 *  调用打印机
 */
勾芒's avatar
勾芒 committed
62
- (void)callAirprintWithdata:(NSString *)PDFpath SuccessBlock:(void(^)())success ErrorBlock:(void(^)())failed;
曹云霄's avatar
曹云霄 committed
63 64 65



66 67 68 69
/**
 *  成功等待视图
 */
- (void)SuccessMBProgressView:(NSString *)successString;
曹云霄's avatar
曹云霄 committed
70

71
/**
72
 *  提示信息等待视图
73 74
 */
- (void)ErrorMBProgressView:(NSString *)errorString;
曹云霄's avatar
曹云霄 committed
75 76


勾芒's avatar
勾芒 committed
77 78 79 80
/**
 *  纯文本提示框
 */
- (void)SHOWPrompttext:(NSString *)Text;
曹云霄's avatar
曹云霄 committed
81

勾芒's avatar
勾芒 committed
82
/**
勾芒's avatar
勾芒 committed
83
 *  显示提示图片、文本
勾芒's avatar
勾芒 committed
84
 */
勾芒's avatar
勾芒 committed
85 86 87 88 89 90 91
- (void)PromptinformationViewWithimage:(UIImage *)image withTitle:(NSString *)title withpoint:(CGPoint)point;

/**
 *  删除提示图片、文本
 */
- (void)RemovePromptinformationView;

92 93 94 95 96 97
/**
 *  提示框
 *
 */
- (void)promptCustomerTitle:(NSString *)title finish:(void(^)())complete;

勾芒's avatar
勾芒 committed
98 99 100 101 102 103 104 105 106 107 108 109

/**
 *  查询订单状态图片
 */
+ (UIImage *)ReturnOrderStateImageWithStateCode:(NSInteger)ordercode;

/**
 *  查询订单状态文本      //code == 0 取文字  code == 1取颜色
 */
+ (id)ReturnOrderStateTitleWithStateCode:(NSInteger)ordercode withPoint:(CGPoint)point WithCode:(NSInteger)code;


勾芒's avatar
勾芒 committed
110 111 112 113
/**
 *  查询购物车数量
 */
- (void)QueryShoppingCarNumber;
曹云霄's avatar
曹云霄 committed
114

115 116 117 118 119
/**
 *  查询购物车商品
 */
- (void)queryShoppingCarGoods;

勾芒's avatar
勾芒 committed
120 121 122 123 124 125

/**
 *  系统提示框
 */
- (void)promptCustomerWithString:(NSString *)message;

126 127 128 129 130 131 132 133 134 135 136 137

/**
 *  进度条
 */
- (void)ShowProgressView:(double)progress;


/**
 *  提示框
 */
@property (nonatomic,strong) MBProgressHUD*TCHud;

138 139 140 141
/**
 *  友好化时间
 */
+ (NSString *) compareCurrentTime:(NSString *)str;
142

143 144 145 146
/**
 *  获取版本号
 */
- (NSString*)getAppVersion;
147

148 149 150 151 152 153 154 155 156 157
/**
 *  通过面额获取相应的图片
 */
+ (UIImage *)getCorrespondingPictures:(NSInteger)total;

/**
 *  判断字符串是否为空
 */
+ (BOOL)isBlankString:(NSString *)string;

158

曹云霄's avatar
曹云霄 committed
159
@end