TipMessageHUD 0.0.4

TipMessageHUD 0.0.4

Lee0924 维护。



  • 作者
  • Lee0924

TipMessageHUD

iOS 活动指示器

typedef NS_ENUM(NSInteger, TipMessageHUDStatus) {

/** 成功 */ TipMessageHUDStatusSuccess,

/** 失败 */ TipMessageHUDStatusError,

/** 提示 */ TipMessageHUDStatusInfo,

/** 等待 */ TipMessageHUDStatusWaitting };

@interface TipMessageHUD : MBProgressHUD /**

  • 是否正在显示 */ @property (nonatomic, assign, getter=isShowNow) BOOL showNow;

/** 返回一个 HUD 的单例 */

  • (instancetype)sharedHUD;

/** 在 view 上添加一个 HUD */

  • (void)showStatus:(TipMessageHUDStatus)status text:(NSString *)text superView:(UIView *)superView;

#pragma mark - 建议使用的方法

/** 在 view 上添加一个只显示文字的 HUD */

  • (void)showMessage:(NSString *)text superView:(UIView *)superView;

/** 在 view 上添加一个提示信息

  • (void)showInfoMsg:(NSString *)text superView:(UIView *)superView;

/** 在 view 上添加一个提示失败的 HUD */

  • (void)showFailure:(NSString *)text superView:(UIView *)superView;

/** 在 view 上添加一个提示成功的 HUD */

  • (void)showSuccess:(NSString *)text superView:(UIView *)superView;

/** 在 view 上添加一个提示等待的 HUD, 需要手动关闭 */

  • (void)showLoading:(NSString *)text superView:(UIView *)superView;

/** 手动隐藏 HUD */

  • (void)hide;