BGBaseViewController.h 1.3 KB

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