UIScrollView+Refresh.h 1019 B

1234567891011121314151617181920212223242526272829303132
  1. //
  2. // UIScrollView+Refresh.h
  3. // homy
  4. //
  5. // Created by 翟玉磊 on 2018/11/9.
  6. // Copyright © 2018 翟玉磊. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. NS_ASSUME_NONNULL_BEGIN
  10. @interface UIScrollView (Refresh)
  11. /// 添加下拉刷新控件
  12. - (MJRefreshHeader *)addHeaderRefresh:(void(^)(MJRefreshHeader *header))refreshingBlock;
  13. /// 添加上拉加载控件
  14. - (MJRefreshFooter *)addFooterRefresh:(void(^)(MJRefreshFooter *footer))refreshingBlock;
  15. /// 添加下拉刷新控件
  16. - (MJRefreshHeader *)addImageHeaderRefresh:(void(^)(MJRefreshHeader *header))refreshingBlock;
  17. /// 添加上拉加载控件
  18. - (MJRefreshFooter *)addImageFooterRefresh:(void(^)(MJRefreshFooter *footer))refreshingBlock;
  19. /// 添加下拉刷新控件
  20. - (MJRefreshNormalHeader *)native_addHeaderRefresh:(void(^)(MJRefreshNormalHeader *header))refreshingBlock;
  21. /// 添加上拉加载控件
  22. - (MJRefreshAutoNormalFooter *)native_addFooterRefresh:(void(^)(MJRefreshAutoNormalFooter *footer))refreshingBlock;
  23. @end
  24. NS_ASSUME_NONNULL_END