//
|
// recommendViewController.m
|
// BuWanVideo2.0
|
//
|
// Created by apple on 2018/3/13.
|
// Copyright © 2018年 com.yeshi.buwansheque.ios. All rights reserved.
|
//
|
|
#import "recommendViewController.h"
|
#import "recommendView.h"
|
@interface recommendViewController ()
|
@property (nonatomic,strong)recommendView *recommendView;
|
@end
|
|
@implementation recommendViewController
|
- (instancetype)init {
|
self = [super init];
|
if (self) {
|
self.title = @"精选";
|
UITabBarItem *item = [[UITabBarItem alloc]initWithTitle:self.title image:[UIImage imageNamed:@"Home-拷贝"] selectedImage:[UIImage imageNamed:@"Home"]];
|
item.titlePositionAdjustment = UIOffsetMake(0, -5);
|
// item.imageInsets = UIEdgeInsetsMake(1, 0, 2, 0);
|
self.tabBarItem = item;
|
}
|
return self;
|
}
|
|
- (void)viewDidLoad {
|
[super viewDidLoad];
|
self.automaticallyAdjustsScrollViewInsets = NO;
|
[self.view addSubview:self.recommendView];
|
}
|
|
#pragma mark - getter
|
- (recommendView *)recommendView{
|
if (_recommendView) {
|
return _recommendView;
|
}
|
_recommendView = [[recommendView alloc]initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height)];
|
return _recommendView;
|
}
|
|
|
- (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
|