EMRefreshViewController.h 957 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. //
  2. // EMRefreshViewController.h
  3. // DXStudio
  4. //
  5. // Created by XieYajie on 12/10/2017.
  6. // Copyright © 2017 dxstudio. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. //带加载、刷新的Controller(包含UITableView)
  10. @interface EMRefreshViewController : UIViewController<UITableViewDelegate, UITableViewDataSource>
  11. @property (strong, nonatomic) UITableView *tableView;
  12. @property (strong, nonatomic) UIView *defaultFooterView;
  13. @property (strong, nonatomic) NSMutableArray *dataArray;
  14. @property (nonatomic) int page;
  15. @property (nonatomic) BOOL showRefreshHeader;
  16. @property (nonatomic) BOOL showRefreshFooter;
  17. @property (nonatomic, readonly) BOOL isHeaderRefreshing;
  18. @property (nonatomic, readonly) BOOL isFooterRefreshing;
  19. //- (void)setRefreshHeaderColor:(UIColor *)aColor;
  20. - (void)tableViewDidTriggerHeaderRefresh;
  21. - (void)tableViewDidTriggerFooterRefresh;
  22. - (void)tableViewDidFinishTriggerHeader:(BOOL)isHeader reload:(BOOL)reload;
  23. @end