MBProgressHUD+YanC.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. //
  2. // MBProgressHUD+YanC.h
  3. // BorrowMoney
  4. //
  5. // Created by chengzhang Yan on 2016/10/13.
  6. // Copyright © 2016年 JuYi. All rights reserved.
  7. //
  8. #import "MBProgressHUD.h"
  9. @interface MBProgressHUD (YanC)
  10. /** 显示成功 */
  11. + (void)showSuccess:(NSString *)success;
  12. /** 显示失败 */
  13. + (void)showError:(NSString *)error;
  14. /** 显示提示符号 */
  15. + (void)showInfo:(NSString *)info;
  16. /** 显示信息+转圈圈 */
  17. + (void)showMessage:(NSString *)message;
  18. /** 显示图片 */
  19. + (void)showLogoImageWithImageName:(NSString *)imgName;
  20. /** 只显示一条提示信息 */
  21. + (void)showOnlyText:(NSString *)message;
  22. /** 显示成功--->到指定view */
  23. + (void)showSuccess:(NSString *)success toView:(UIView *)view;
  24. /** 显示失败--->到指定view */
  25. + (void)showError:(NSString *)error toView:(UIView *)view;
  26. /** 显示提示符号--->到指定view */
  27. + (void)showInfo:(NSString *)info toView:(UIView *)view;
  28. /** 显示信息(转圈圈)--->到指定view */
  29. + (void)showMessage:(NSString *)message toView:(UIView *)view;
  30. /** 显示图片 --->到指定view */
  31. + (void)showLogoImageWithImageName:(NSString *)imgName toView:(UIView *)view;
  32. /** 只显示一条提示信息--->到指定view */
  33. + (void)showOnlyText:(NSString *)message toView:(UIView *)view;
  34. /** 隐藏HUD */
  35. + (void)hideHUD;
  36. /** 隐藏--->指定view上的HUD */
  37. + (void)hideHUDForView:(UIView *)view;
  38. /** 只显示一条提示信息带确定按钮 */ //新需求
  39. + (void)showOnlyText:(NSString *)message controller:(UIViewController *)controller;
  40. @end