XYLookPictureViewController.m 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. //
  2. // XYLookPictureViewController.m
  3. // Starbuds
  4. //
  5. // Created by 翟玉磊 on 2019/12/24.
  6. // Copyright © 2019 翟玉磊. All rights reserved.
  7. //
  8. #import "XYLookPictureViewController.h"
  9. @interface XYLookPictureViewController ()
  10. @end
  11. @implementation XYLookPictureViewController
  12. /// 重写init方法,配置你想要的属性
  13. - (instancetype)init
  14. {
  15. self = [super init];
  16. if (self) {
  17. self.prefersNavigationBarHidden = YES;
  18. }
  19. return self;
  20. }
  21. - (void)viewDidLoad {
  22. [super viewDidLoad];
  23. /// 设置
  24. [self _setup];
  25. /// 设置导航栏
  26. [self _setupNavigationItem];
  27. /// 设置子控件
  28. [self _setupSubViews];
  29. /// 布局子空间
  30. [self _makeSubViewsConstraints];
  31. }
  32. #pragma mark — Override
  33. - (void)bindViewModel {
  34. }
  35. #pragma mark - 事件处理Or辅助方法
  36. #pragma mark - 初始化
  37. - (void)_setup{
  38. self.view.backgroundColor = Color_Black;
  39. }
  40. #pragma mark - 设置导航栏
  41. - (void)_setupNavigationItem{
  42. }
  43. #pragma mark - 设置子控件
  44. - (void)_setupSubViews{
  45. }
  46. #pragma mark - 布局子控件
  47. - (void)_makeSubViewsConstraints{
  48. }
  49. #pragma mark - Setter & Getter
  50. @end