UIViewController+HUB.h 896 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. //
  2. // UIViewController+HUB.h
  3. // ZhuDD
  4. //
  5. // Created by 张夏永 on 17/5/2.
  6. // Copyright © 2017年 ZXY. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. #define IS_IPHONE_5 ( fabs( ( double )[ [ UIScreen mainScreen ] bounds ].size.height - ( double )568 ) < DBL_EPSILON )
  10. @interface UIViewController (HUB)
  11. /**
  12. 指定页面提示
  13. */
  14. - (void)ShowHudInView:(UIView *)view hint:(NSString *)hint;
  15. /**
  16. 文字提示
  17. */
  18. - (void)ShowReminder:(NSString *)reminder waitTime:(float)t with:(void(^)(void))block;
  19. /**
  20. 固定错误提示
  21. */
  22. -(void)ShowBadNetWork;
  23. /**
  24. 加载进度菊花
  25. */
  26. - (void)ShowHint:(NSString *)hint;
  27. - (void)ShowHint:(NSString *)hint vc:(UIViewController *)vc;
  28. /**
  29. 提示(可换提示框位置)
  30. */
  31. - (void)ShowHint:(NSString *)hint yOffset:(float)yOffset;
  32. /**
  33. 关闭提示框
  34. */
  35. - (void)HideHud;
  36. - (void)hideWithMsg:(NSString *)msg After:(CGFloat)delay;
  37. @end