123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- //
- // MBProgressHUD+KDPCategory.h
- // KuDianProject
- //
- // Created by 学丽 on 2019/7/4.
- // Copyright © 2019 KDP. All rights reserved.
- //
- #import "MBProgressHUD.h"
- //统一的显示时长
- #define kHudShowTime 1.5
- NS_ASSUME_NONNULL_BEGIN
- @interface MBProgressHUD (KDPCategory)
- #pragma mark 在指定的view上显示hud
- + (void)show:(NSString *)text icon:(NSString *)icon view:(UIView *)view;
- + (void)showMessage:(NSString *)message toView:(UIView *)view;
- + (void)showSuccess:(NSString *)success toView:(UIView *)view;
- + (void)showError:(NSString *)error toView:(UIView *)view;
- + (void)showWarning:(NSString *)Warning toView:(UIView *)view;
- + (void)showMessageWithImageName:(NSString *)imageName message:(NSString *)message toView:(UIView *)view;
- + (MBProgressHUD *)showActivityMessage:(NSString*)message view:(UIView *)view;
- + (MBProgressHUD *)showProgressBarToView:(UIView *)view;
- + (void)showView:(UIView *)view;
- #pragma mark 在window上显示hud
- + (void)showMessage:(NSString *)message;
- + (void)showSuccess:(NSString *)success;
- + (void)showError:(NSString *)error;
- + (void)showWarning:(NSString *)Warning;
- + (void)showMessageWithImageName:(NSString *)imageName message:(NSString *)message;
- + (MBProgressHUD *)showActivityMessage:(NSString*)message;
- #pragma mark 移除hud
- + (void)hideHUDForView:(UIView *)view;
- + (void)hideHUD;
- @end
- NS_ASSUME_NONNULL_END
|