导航栏颜色的设置
来源:互联网 发布:淘宝充气娃娃骗局 编辑:程序博客网 时间:2024/05/20 19:32
- (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]];
}
0 0
- 设置导航栏的颜色
- 设置导航栏的颜色
- 设置导航栏的颜色
- 导航栏颜色的设置
- 导航栏的颜色设置
- 导航栏和状态栏的颜色设置
- 导航栏上文字颜色的设置
- 导航栏颜色及UIBarButtonItem 的设置
- 设置导航栏的背景颜色
- 设置导航栏颜色渐变的效果
- 导航条的颜色设置
- ios8 设置导航栏颜色
- 导航栏标题颜色设置
- ios8 设置导航栏颜色
- bootstrap导航栏颜色设置
- 设置导航栏前景颜色
- 设置导航栏标题颜色
- iOS 导航栏颜色设置
- Lua动态list
- web.xml中引入SPRING配置文件classpath的含义
- 集合之HashMap
- 树莓派3 使用体会
- iOS ViewController跳转界面的几种方法简单总结
- 导航栏颜色的设置
- Lua语法
- Android动画--逐帧动画和补间动画简单介绍和基本用法(一)
- 一些系统类的头文件(三)
- 可变参数列表
- android(NDK+JNI)---Android JNI开发生成.h头文件问题
- android shape的使用
- 欢迎使用CSDN-markdown编辑器
- iOS下读取iphone支持的字体列表,iphone支持显示那些字体