XBLoadingView.h 915 Bytes
Newer Older
曹云霄's avatar
曹云霄 committed
1 2 3 4 5 6 7 8
//
//  XBLoadingView.h
//  Lighting
//
//  Created by 曹云霄 on 2016/12/1.
//  Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//

9
#import "MBProgressHUD.h"
曹云霄's avatar
曹云霄 committed
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

@interface XBLoadingView : MBProgressHUD


/**
 显示普通加载框
 */
+ (void)showHUDViewWithDefault;

/**
 显示普通加载框
 */
+ (void)showHUDViewWithDefaultWithView:(UIView *)view;

/**
 显示文本提示框

 @param text 提示信息
 */
+ (void)showHUDViewWithText:(NSString *)text;

/**
 显示成功提示框

 @param text 提示信息
 */
+ (void)showHUDViewWithSuccessText:(NSString *)text completeBlock:(void(^)())finish;

/**
 显示进度框

 @param text 提示信息

 @return XBLoadingView
 */
+ (XBLoadingView *)showHUDViewProgressLabel:(NSString *)text;

/**
 隐藏加载框
 */
+ (void)hideHUDViewWithDefault;

/**
 隐藏加载框
 */
+ (void)hideHUDViewWithDefaultWithView:(UIView *)view;



@end