导航栏颜色的设置
2016-04-12 14:12
239 查看
- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view.
[self initializeUserInterface];
}
- (void)initializeUserInterface
{
self.view.backgroundColor = [UIColor colorWithRed:0.936 green:0.941 blue:0.936 alpha:1.000];
UILabel *title = [[UILabel alloc] initWithFrame:self.view.bounds];
title.textColor = [UIColor whiteColor];
title.backgroundColor = [UIColor clearColor];
title.textAlignment = NSTextAlignmentCenter;
title.text = @"产品库";
title.font = [UIFont fontWithName:@"Helvetica-Bold" size:20];
self.navigationItem.titleView = title;
[self.navigationController.navigationBar setBarTintColor:[UIColor colorWithRed:0.164 green:0.657 blue:0.915 alpha:1.000]];
}
[super viewDidLoad];
// Do any additional setup after loading the view.
[self initializeUserInterface];
}
- (void)initializeUserInterface
{
self.view.backgroundColor = [UIColor colorWithRed:0.936 green:0.941 blue:0.936 alpha:1.000];
UILabel *title = [[UILabel alloc] initWithFrame:self.view.bounds];
title.textColor = [UIColor whiteColor];
title.backgroundColor = [UIColor clearColor];
title.textAlignment = NSTextAlignmentCenter;
title.text = @"产品库";
title.font = [UIFont fontWithName:@"Helvetica-Bold" size:20];
self.navigationItem.titleView = title;
[self.navigationController.navigationBar setBarTintColor:[UIColor colorWithRed:0.164 green:0.657 blue:0.915 alpha:1.000]];
}
相关文章推荐
- iOS ViewController跳转界面的几种方法简单总结
- 清理归档日志
- Android动画--逐帧动画和补间动画简单介绍和基本用法(一)
- 可变参数列表
- 树莓派3 使用体会
- Lync Server 2013 标准版-测试内部登陆
- DBLP实验数据集处理
- Lua动态list
- Lua语法
- Spring事务的5种模式
- Pas组件安装
- ajaxfileupload 上传小坑
- unity~循环播放三个音频,自己写个小demo
- Vulkan Dispatching commands
- student a am i -> i am a student
- CAGradientLayer应用及效果
- iOS开源库
- 一些系统类的头文件(二)
- C#自动实现Dll(OCX)控件注册的两种方法
- 索引介绍