-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCustomTabBarController.m
36 lines (28 loc) · 1014 Bytes
/
CustomTabBarController.m
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
//
// CustomTabBarController.m
// AvocadoTest1
//
// Created by Jake on 12-03-15.
// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//
#import "CustomTabBarController.h"
#import "Utilities.h"
@implementation CustomTabBarController
- (void)viewDidLoad
{
[super viewDidLoad];
UIImageView *aView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"BlankTopbar.png"]];
[aView setFrame:CGRectMake(0.0, 0.0, self.view.bounds.size.width, 48)];
UIView *anotherView = [[UIView alloc] init];
[anotherView setBackgroundColor:[UIColor blackColor]];
[anotherView setAlpha:0.22];
[anotherView setFrame:CGRectMake(0.0, 0.0, self.view.bounds.size.width, 48)];
[[self tabBar] addSubview:aView];
[[self tabBar] addSubview:anotherView];
}
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
// Return YES for supported orientations
return (interfaceOrientation == UIInterfaceOrientationPortrait);
}
@end