UIScrollView+MJRefresh.h 1.0 KB

1234567891011121314151617181920212223242526
  1. // 代码地址: https://github.com/CoderMJLee/MJRefresh
  2. // 代码地址: http://code4app.com/ios/%E5%BF%AB%E9%80%9F%E9%9B%86%E6%88%90%E4%B8%8B%E6%8B%89%E4%B8%8A%E6%8B%89%E5%88%B7%E6%96%B0/52326ce26803fabc46000000
  3. // UIScrollView+MJRefresh.h
  4. // MJRefreshExample
  5. //
  6. // Created by MJ Lee on 15/3/4.
  7. // Copyright (c) 2015年 小码哥. All rights reserved.
  8. // 给ScrollView增加下拉刷新、上拉刷新的功能
  9. #import <UIKit/UIKit.h>
  10. #import "MJRefreshConst.h"
  11. @class MJRefreshHeader, MJRefreshFooter;
  12. @interface UIScrollView (MJRefresh)
  13. /** 下拉刷新控件 */
  14. @property (strong, nonatomic) MJRefreshHeader *mj_header;
  15. @property (strong, nonatomic) MJRefreshHeader *header MJRefreshDeprecated("使用mj_header");
  16. /** 上拉刷新控件 */
  17. @property (strong, nonatomic) MJRefreshFooter *mj_footer;
  18. @property (strong, nonatomic) MJRefreshFooter *footer MJRefreshDeprecated("使用mj_footer");
  19. #pragma mark - other
  20. - (NSInteger)mj_totalDataCount;
  21. @property (copy, nonatomic) void (^mj_reloadDataBlock)(NSInteger totalDataCount);
  22. @end