STTableBaseView.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334
  1. //
  2. // STTableBaseView.h
  3. // BuguLive
  4. //
  5. // Created by 岳克奎 on 17/4/17.
  6. // Copyright © 2017年 xfg. All rights reserved.
  7. //
  8. #import "STBaseView.h"
  9. #import "STNavView.h"
  10. @class STTableBaseView;
  11. @protocol STTableViewBaseViewDelegate <NSObject>
  12. @optional
  13. -(void)showTableViewDidSelectIndexpath:(NSIndexPath *)indexPath andSTTableBaseView:(STTableBaseView *)stTableBaseView;
  14. @end
  15. @interface STTableBaseView : STBaseView <UITableViewDelegate,UITableViewDataSource>
  16. @property (nonatomic,strong)UITableView *tableView;
  17. @property (nonatomic,strong)NSMutableArray *dataSoureMArray;
  18. @property (nonatomic,assign) BOOL hasNextPage;
  19. @property (nonatomic,assign) NSInteger recordCurrentPage;
  20. @property (nonatomic,weak) id<STTableViewBaseViewDelegate>baseDelegate;
  21. @property(nonatomic,strong)STNavView *stNavView; //custom stNavView
  22. @property(nonatomic,strong)STRefresh *stRefresh;
  23. //#pragma mark ------- STRefresh
  24. //-(void)showSTRefreshTableView:(UITableView *)tableView
  25. // andSTRefreshType:(STRefreshType)stRefreshType
  26. // andSTRefreshHeaderType:(STRefreshHeaderType )stRefreshHeaderType
  27. // andSTRefreshTimeLabHidden:(BOOL)timeLabHidden
  28. // andSTRefreshStateLabHidden:(BOOL)stateLabHidden;
  29. //#pragma mark ------- show Request API
  30. //-(void)showAPIDataAndComplete:(void(^)(BOOL finished))block;
  31. @end