dkahgld

MBProgressHUD+Extension.h 995B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. /** 显示信息 */
  22. + (MBProgressHUD *)showMessage:(NSString *)message;
  23. /** 显示信息 */
  24. + (MBProgressHUD *)showMessage:(NSString *)message toView:(UIView *)view;
  25. /** 显示成功 */
  26. + (void)showSuccess:(NSString *)success;
  27. /** 显示成功 */
  28. + (void)showSuccess:(NSString *)success toView:(UIView *)view;
  29. /** 显示错误 */
  30. + (void)showError:(NSString *)error;
  31. /** 显示错误 */
  32. + (void)showError:(NSString *)error toView:(UIView *)view;
  33. /** 隐藏 */
  34. + (void)hideHUD;
  35. /** 隐藏 */
  36. + (void)hideHUDForView:(UIView *)view;
  37. @end