Hibit_iOS/HiBit/Utils/HUD/HUDManager.h
2024-06-07 11:41:02 +08:00

84 lines
3.4 KiB
Objective-C
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//
// HUDManager.h
// TeacherPro
//
// Created by on 2017/4/24.
// Copyright © 2017年 ZNXZ. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "MBProgressHUD.h"
typedef enum
{
/// customView显示操作成功
HUDOperationSuccess,
/// customView显示操作失败
HUDOperationFailed,
/// 不加载customView
HUDOthers
}HUDShowType;
@interface HUDManager : NSObject<MBProgressHUDDelegate>
/// 界面提示信息展示 自动隐藏
/// @param showStr 展示文字
+ (void)showAutoHideHUDWithToShowStr:(NSString *)showStr;
/**
* 方法描述: 界面提示信息展示 自动隐藏
* 输入参数: showStr 展示文字 类型 superView HUD 显示的父视图
* 返回值: VOID
* 创建人:
*/
+ (void)showAutoHideHUDWithToShowStr:(NSString *)showStr HUDAddedToView:(UIView *)superView;
/**
* 方法描述: 界面提示信息展示 自动隐藏
* 输入参数: showStr 展示文字, mode HUD类型, 提示期间不能进行界面交互,展示类型 固定显示HUDOthers 类型 superView HUD 显示的父视图
* 返回值: VOID
* 创建人:
*/
+ (void)showAutoHideHUDWithToShowStr:(NSString *)showStr HUDMode:(MBProgressHUDMode)mode HUDAddedToView:(UIView *)superView;
/**
* 方法描述: 界面提示信息展示自动隐藏
* 输入参数: showStr 展示文字, showType 提示展示的信息类型来源 提示期间结束后开启进行界面交互 superView HUD 显示的父视图 progress:进度
* 返回值: VOID
* 创建人:
*/
+ (void)showAutoHideHUDOfCustomViewWithToShowStr:(NSString *)showStr showType:(HUDShowType)showType HUDAddedToView:(UIView *)superView addProgress:(CGFloat )progress;
/**
* 方法描述: 界面提示信息展示
* 输入参数: showStr 展示文字, showStr 展示文字, showType 提示展示的信息类型 autoHide自动隐藏是否 afterDelay持续时间 yesOrNo提示期间结束后是否开启进行界面交互 superView HUD 显示的父视图 progress:进度
* 返回值: VOID
* 创建人:
*/
+ (void)showHUDWithToShowStr:(NSString *)showStr HUDMode:(MBProgressHUDMode)mode autoHide:(BOOL)autoHide afterDelay:(NSTimeInterval)afterDelay userInteractionEnabled:(BOOL)yesOrNo HUDAddedToView:(UIView *)superView addProgress:(CGFloat )progress;
/// 显示DGActivity HUD
+ (void)showActivityHUDToView:(UIView *)superView;
/// 显示DGActivity HUD
+ (void)showActivityHUD;
///显示自定义hud
/// @param showStr 文字
+ (void)showCustomViewHUDWithToShowStr:(NSString *)showStr;
/// 显示自定义hud
/// @param showStr 文字
/// @param superView 父视图
+ (void)showCustomViewHUDWithToShowStr:(NSString *)showStr HUDAddedToView:(UIView *)superView;
/**
* 方法描述: 界面提示信息展示
* 输入参数: showStr 展示文字, showStr 展示文字, showType 提示展示的信息类型 autoHide自动隐藏是否 afterDelay持续时间 yesOrNo提示期间结束后是否开启进行界面交互 howType 提示展示的信息类型来源 superView HUD 显示的父视图 progress:进度
* 返回值: VOID
* 创建人:
*/
+ (void)showHUDWithToShowStr:(NSString *)showStr HUDMode:(MBProgressHUDMode)mode autoHide:(BOOL)autoHide afterDelay:(NSTimeInterval)afterDelay userInteractionEnabled:(BOOL)yesOrNo showType:(HUDShowType)showType HUDAddedToView:(UIView *)superView addProgress:(CGFloat )progress hasShade:(BOOL)showShadeState;
/**
* 方法描述: 隐藏提示
* 输入参数: 无
* 返回值: 无
* 创建人:
*/
+ (void)hideHUD;
@end