码迷,mamicode.com
首页 > 其他好文 > 详细

NavigationController修改状态条颜色

时间:2014-09-05 03:25:41      阅读:198      评论:0      收藏:0      [点我收藏+]

标签:navigationcontroller 修改 状态条 颜色



#import "AddressBookNavigationController.h"

@interface AddressBookNavigationController ()

@end

@implementation AddressBookNavigationController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

//设置状态条的样式
- (UIStatusBarStyle)preferredStatusBarStyle
{
    return UIStatusBarStyleLightContent;
}
- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}

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





#import <UIKit/UIKit.h>

@interface AddressBookNavigationController : UINavigationController

@end




NavigationController修改状态条颜色

标签:navigationcontroller 修改 状态条 颜色

原文地址:http://qccccc.blog.51cto.com/6004423/1548889

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!