GKBaseListViewController.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. //
  2. // GKBaseListViewController.h
  3. // GKPageScrollViewDemo
  4. //
  5. // Created by QuintGao on 2018/12/11.
  6. // Copyright © 2018 QuintGao. All rights reserved.
  7. //
  8. #import "GKBaseTableViewController.h"
  9. #import <GKPageScrollView/GKPageScrollView.h>
  10. #import <GKPageSmoothView/GKPageSmoothView.h>
  11. NS_ASSUME_NONNULL_BEGIN
  12. typedef NS_ENUM(NSUInteger, GKBaseListType) {
  13. GKBaseListType_UITableView = 0,
  14. GKBaseListType_UICollectionView = 1,
  15. GKBaseListType_UIScrollView = 2,
  16. GKBaseListType_WKWebView = 3
  17. };
  18. @interface GKBaseListViewController : UIViewController<GKPageListViewDelegate, GKPageSmoothListViewDelegate>
  19. - (instancetype)initWithListType:(GKBaseListType)listType;
  20. @property (nonatomic, assign) NSInteger index;
  21. @property (nonatomic, assign) NSInteger count;
  22. @property (nonatomic, assign) BOOL shouldLoadData;
  23. @property (nonatomic, assign) BOOL disableLoadMore;
  24. @property (nonatomic, copy) void(^listItemClick)(GKBaseListViewController *listVC, NSIndexPath *indexPath);
  25. - (void)addHeaderRefresh;
  26. - (void)reloadData;
  27. - (void)refreshWithCompletion:(nullable void(^)(void))completion;
  28. @end
  29. NS_ASSUME_NONNULL_END