BGBaseTableViewController.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. //
  2. // BGBaseTableViewController.h
  3. // BuguLive
  4. //
  5. // Created by xfg on 2017/7/5.
  6. // Copyright © 2017年 xfg. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. static NSString *const cellReuseIdentifier = @"cellReuseIdentifier";
  10. @interface BGBaseTableViewController : UITableViewController
  11. /**
  12. 网络请求
  13. */
  14. @property (nonatomic, strong) NetHttpsManager *httpsManager;
  15. /**
  16. 全局参数控制
  17. */
  18. @property (nonatomic, strong) GlobalVariables *BuguLive;
  19. /**
  20. 指示器
  21. */
  22. @property (nonatomic, strong) MBProgressHUD *proHud;
  23. /**
  24. 当前类主要数据列表
  25. */
  26. @property (nonatomic, strong) NSMutableArray *mainDataMArray;
  27. /**
  28. 当前页数
  29. */
  30. @property (nonatomic, assign) int currentPage;
  31. /**
  32. 总页数
  33. */
  34. @property (nonatomic, assign) int totalPage;
  35. /**
  36. 左上角返回按钮
  37. @param backBlock 点击返回按钮的回调,若nil则默认调用 [self.navigationController popViewControllerAnimated:YES]
  38. */
  39. - (void)setupBackBtnWithBlock:(BackBlock)backBlock;
  40. /**
  41. 点击了返回按钮
  42. */
  43. - (void)onReturnBtnPress;
  44. /**
  45. 显示指示器
  46. */
  47. - (void)showMyHud;
  48. /**
  49. 隐藏指示器
  50. */
  51. - (void)hideMyHud;
  52. #pragma mark - 供子类重写
  53. /**
  54. 初始化变量
  55. */
  56. - (void)initFWVariables NS_REQUIRES_SUPER;
  57. /**
  58. UI创建
  59. */
  60. - (void)initFWUI NS_REQUIRES_SUPER;
  61. /**
  62. 加载数据
  63. */
  64. - (void)initFWData NS_REQUIRES_SUPER;
  65. @end