NavigationBar 背景颜色,字体颜色
2024-08-27 02:39:30
// 设置状态栏颜色
[application setStatusBarStyle:UIStatusBarStyleLightContent]; // 设置导航栏
[[UINavigationBar appearance] setTintColor:[UIColor whiteColor]]; if (kIS_IOS7) {
[[UINavigationBar appearance] setBarTintColor:KNavibarColor];
} else {
[[UINavigationBar appearance] setBackgroundImage:[UIImage Color:KNavibarColor Size:CGSizeMake(0.5, )]
forBarMetrics:UIBarMetricsDefault];
} NSDictionary *textTitleOptions = [NSDictionary dictionaryWithObjectsAndKeys:[UIColor whiteColor], UITextAttributeTextColor, [UIColor whiteColor], UITextAttributeTextShadowColor, nil];
[[UINavigationBar appearance] setTitleTextAttributes:textTitleOptions];
最新文章
- 后台session过期,tomcat重启,自动跳转页面js写法
- Tmux的安装、使用与配置
- BZOJ总览
- oracle中删除表中某字段出现重复的信息 保留其中一条
- oracle-7参数文件的管理
- mysql tinyint smallint mediumint int bigint
- JavaScript中对于闭包的理解
- 《SAS编程与数据挖掘商业案例》学习笔记之十七
- MySQL协议分析
- Java 编程下使用 Class.forName() 加载类
- 现在,以编程方式在 Electron 中上传文件,是非常简单的!
- 【iOS】Swift类的继承、构造方法、析构器等复习
- Xamarin Essentials教程检查网络连通性Connectivity
- STL中的容器作为返回值
- 保存canvas
- php composer 使用 以及 psr0和psr4的真正区别
- EntityFramework Core 学习扫盲
- 如何将.NET 4.0写的Windows service和Web API部署到docker上面
- Fluent UDF【7】:解释型UDF
- VC小笔记
热门文章
- spring中的AOP 以及各种通知 配置
- C# 递归查找文件夹下所有文件和子文件夹的所有文件
- C# EF使用性能消耗列表 https://msdn.microsoft.com/zh-cn/library/cc853327.aspx
- CSS经验库
- ext4文件系统(转)
- Mac / Windows 下的 FTP 工具filezilla
- 为centos桌面增加在右键中打开终端
- MySQL加速查询速度的独门武器:查询缓存
- Java Servlet/JSP容器配置 session id
- java中的Closeable接口