YBIBLoadingView.h 623 B

123456789101112131415161718192021222324252627282930313233343536
  1. //
  2. // YBIBLoadingView.h
  3. // YBImageBrowserDemo
  4. //
  5. // Created by 波儿菜 on 2018/9/1.
  6. // Copyright © 2018年 波儿菜. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. NS_ASSUME_NONNULL_BEGIN
  10. @interface UIView (YBIBLoading)
  11. - (void)ybib_showLoading;
  12. - (void)ybib_showLoadingWithProgress:(CGFloat)progress;
  13. - (void)ybib_showLoadingWithText:(NSString *)text click:(nullable void(^)(void))click;
  14. - (void)ybib_hideLoading;
  15. @end
  16. @interface YBIBLoadingView : UIView
  17. - (void)show;
  18. - (void)showProgress:(CGFloat)progress;
  19. - (void)showText:(NSString *)text click:(void(^)(void))click;
  20. @end
  21. NS_ASSUME_NONNULL_END