47 lines
1.2 KiB
Objective-C
47 lines
1.2 KiB
Objective-C
//
|
|
// UMComNavigationController.m
|
|
// UMCommunity
|
|
//
|
|
// Created by Gavin Ye on 8/27/14.
|
|
// Copyright (c) 2014 Umeng. All rights reserved.
|
|
//
|
|
|
|
#import "UMComNavigationController.h"
|
|
#import "UMComResouceDefines.h"
|
|
#import <UMComFoundation/UMComKit+Color.h>
|
|
|
|
@interface UMComNavigationController ()
|
|
|
|
@end
|
|
|
|
@implementation UMComNavigationController
|
|
|
|
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
|
|
{
|
|
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
|
|
if (self) {
|
|
// Custom initialization
|
|
}
|
|
return self;
|
|
}
|
|
|
|
- (void)viewDidLoad
|
|
{
|
|
[super viewDidLoad];
|
|
if ([[UIDevice currentDevice].systemVersion floatValue] < 7) {
|
|
[self.navigationBar setBackgroundColor:UMComColorWithHexString(@"#f7f7f8")];
|
|
[self.navigationBar setBackgroundImage:[[UIImage alloc]init] forBarMetrics:UIBarMetricsDefault];
|
|
}else{
|
|
[self.navigationBar setBarTintColor:UMComColorWithHexString(@"#f7f7f8")];
|
|
}
|
|
// Do any additional setup after loading the view from its nib.
|
|
}
|
|
|
|
- (void)didReceiveMemoryWarning
|
|
{
|
|
[super didReceiveMemoryWarning];
|
|
// Dispose of any resources that can be recreated.
|
|
}
|
|
|
|
@end
|