悟空记账

MBProgressHUD+Extension.h 1.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. //
  2. // MBProgressHUD+Extension.h
  3. // djlt
  4. //
  5. // Created by macmini04 on 16/1/18.
  6. // Copyright © 2016年 com.topsage.djlt. All rights reserved.
  7. //
  8. #import "MBProgressHUD.h"
  9. @interface MBProgressHUD (Extension)
  10. /**
  11. 显示加载菊花
  12. @return MBProgressHUD对象
  13. */
  14. + (instancetype)showLoadingAddedToView:(UIView *)view;
  15. /**
  16. 显示提示信息
  17. @param tip 提示信息
  18. @return MBProgressHUD对象
  19. */
  20. + (instancetype)showTip:(NSString *)tip;
  21. + (instancetype)showTip:(NSString *)tip time:(NSTimeInterval)time;
  22. /** 显示信息 */
  23. + (MBProgressHUD *)showMessage:(NSString *)message;
  24. /** 显示信息 */
  25. + (MBProgressHUD *)showMessage:(NSString *)message toView:(UIView *)view;
  26. /** 显示成功 */
  27. + (void)showSuccess:(NSString *)success;
  28. /** 显示成功 */
  29. + (void)showSuccess:(NSString *)success toView:(UIView *)view;
  30. /** 显示错误 */
  31. + (void)showError:(NSString *)error;
  32. /** 显示错误 */
  33. + (void)showError:(NSString *)error toView:(UIView *)view;
  34. /** 隐藏 */
  35. + (void)hideHUD;
  36. /** 隐藏 */
  37. + (void)hideHUDForView:(UIView *)view;
  38. @end