developer
2023-05-20 c1ffd99c4b60066774eb2c97b31e4aaa014e7f51
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
//
//  discoverViewController.m
//  BuWanVideo2.0
//
//  Created by apple on 2018/3/13.
//  Copyright © 2018年 com.yeshi.buwansheque.ios. All rights reserved.
//
 
#import "discoverViewController.h"
#import "discoverView.h"
@interface discoverViewController ()
@property (nonatomic,strong) discoverView *discVC;
 
@end
 
@implementation discoverViewController
- (instancetype)init {
    self = [super init];
    if (self) {
        self.title = @"发现";
//        UITabBarItem *item = [[UITabBarItem alloc]initWithTitle:self.title image:[UIImage imageNamed:@"Navigation-拷贝"] selectedImage:[UIImage imageNamed:@"Navigation"]];
//        item.titlePositionAdjustment = UIOffsetMake(0, -5);
//        self.tabBarItem = item;
    }
    return self;
}
 
- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
    [self.navigationController setNavigationBarHidden:YES animated:animated];
    self.navigationController.navigationBar.translucent = NO;
}
 
- (void)viewWillDisappear:(BOOL)animated {
    [super viewWillDisappear:animated];
    [self.navigationController setNavigationBarHidden:NO animated:animated];
}
 
- (void)viewDidLoad {
    [super viewDidLoad];
    self.automaticallyAdjustsScrollViewInsets = NO;
    [self.view addSubview:self.discVC];
    [self.navigationController.navigationBar setBackgroundColor:kGlobalMainColor];
    self.navigationController.navigationBar.barTintColor = [UIColor blackColor];
}
 
- (discoverView *)discVC {
    if (_discVC) {
        return _discVC;
    }
    _discVC = [[discoverView alloc]  initWithFrame:CGRectMake(0, kStatusBarH + ALNavBarH, KScreenW, KScreenH - kStatusBarH - ALNavBarH - ALTabBar_H)];
    return _discVC;
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}
 
/*
#pragma mark - Navigation
 
// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/
 
@end