//
|
// 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
|