BogoGuideViewController.m 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. //
  2. // BogoGuideViewController.m
  3. // BuguLive
  4. //
  5. // Created by 宋晨光 on 2021/3/19.
  6. // Copyright © 2021 xfg. All rights reserved.
  7. //
  8. #import "BogoGuideViewController.h"
  9. #import "BogoGuideFirstView.h"
  10. @interface BogoGuideViewController ()<UIScrollViewDelegate>
  11. @property(nonatomic, strong) UIScrollView *scrollView;
  12. @property(nonatomic, strong) BogoGuideFirstView *firstView;
  13. @end
  14. @implementation BogoGuideViewController
  15. - (void)viewDidLoad {
  16. [super viewDidLoad];
  17. // Do any additional setup after loading the view.
  18. [self.scrollView addSubview:self.firstView];
  19. [self.view addSubview:self.scrollView];
  20. }
  21. -(UIScrollView *)scrollView{
  22. if (!_scrollView) {
  23. _scrollView = [[UIScrollView alloc]initWithFrame:CGRectMake(0, 0, kScreenW, kScreenH)];
  24. }
  25. return _scrollView;
  26. }
  27. -(BogoGuideFirstView *)firstView{
  28. if (_firstView) {
  29. _firstView = [[NSBundle mainBundle]loadNibNamed:@"BogoGuideFirstView"owner:self options:nil].lastObject;
  30. }
  31. return _firstView;
  32. }
  33. /*
  34. #pragma mark - Navigation
  35. // In a storyboard-based application, you will often want to do a little preparation before navigation
  36. - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
  37. // Get the new view controller using [segue destinationViewController].
  38. // Pass the selected object to the new view controller.
  39. }
  40. */
  41. @end