BaseViewController.h 1.79 KB
Newer Older
曹云霄's avatar
曹云霄 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
//
//  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;


/**
 *  MBProgressHUD等待视图
 */
24
- (void)CreateMBProgressHUDLoding;
曹云霄's avatar
曹云霄 committed
25 26 27 28

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

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

曹云霄's avatar
曹云霄 committed
36 37 38 39 40 41 42 43 44 45
/**
 *  获得我的storyboard对象
 */
- (UIStoryboard *)getStoryboardWithName;



/**
 *  调用打印机
 */
勾芒's avatar
勾芒 committed
46
- (void)callAirprintWithdata:(NSString *)PDFpath SuccessBlock:(void(^)())success ErrorBlock:(void(^)())failed;
曹云霄's avatar
曹云霄 committed
47 48 49



50 51 52 53
/**
 *  成功等待视图
 */
- (void)SuccessMBProgressView:(NSString *)successString;
曹云霄's avatar
曹云霄 committed
54

55 56 57 58
/**
 *  失败等待视图
 */
- (void)ErrorMBProgressView:(NSString *)errorString;
曹云霄's avatar
曹云霄 committed
59 60


勾芒's avatar
勾芒 committed
61 62 63 64
/**
 *  纯文本提示框
 */
- (void)SHOWPrompttext:(NSString *)Text;
曹云霄's avatar
曹云霄 committed
65

勾芒's avatar
勾芒 committed
66 67 68 69
/**
 *  调用无线打印机......成功回调、失败回调
 */
- (void)callAirprintWithURL:(NSURL *)datasurl SuccessBlock:(void(^)())success ErrorBlock:(void(^)())failed;
曹云霄's avatar
曹云霄 committed
70

勾芒's avatar
勾芒 committed
71
/**
勾芒's avatar
勾芒 committed
72
 *  显示提示图片、文本
勾芒's avatar
勾芒 committed
73
 */
勾芒's avatar
勾芒 committed
74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93
- (void)PromptinformationViewWithimage:(UIImage *)image withTitle:(NSString *)title withpoint:(CGPoint)point;

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


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

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



曹云霄's avatar
曹云霄 committed
94 95

@end