/MBProgressHUD-ZCExtension

MBProgressHUD-login Extention

Primary LanguageObjective-CMIT LicenseMIT

#MBProgressHUD ZCExtension

This is a helper for you to easily handle the login hud;

For example: using hud to show information:

+ (MBProgressHUD *)showMessage:(NSString *)message toView:(UIView *)view;

+ (MBProgressHUD *)showMessage:(NSString *)message;

for faster access:

+ (void)showSuccess:(NSString *)success toView:(UIView *)view;
+ (void)showError:(NSString *)error toView:(UIView *)view;

or fastest access:

+ (void)showSuccess:(NSString *)success;
+ (void)showError:(NSString *)error;

hiding the hud after usage:

  • (void)hideHUDForView:(UIView *)view;
  • (void)hideHUD;

typically:

[MBProgressHUD showMessage:@"loading..."];

[MBProgressHUD performSelector:@selector(showSuccess:) withObject:@"login Success" afterDelay:1.5];

Go to Demo for more info.

Hopefully you will enjoy in it!

license: MIT.