设置全局导航,button,UITextField样式
来源:互联网 发布:南风知我意1txt书包网 编辑:程序博客网 时间:2024/06/05 10:42
/设置Nav的背景色和title色 UINavigationBar *navigationBarAppearance = [UINavigationBar appearance]; NSDictionary *textAttributes = nil; [navigationBarAppearance setTintColor:[UIColor whiteColor]];//返回按钮的箭头颜色 [[UITextField appearance] setTintColor:[UIColor colorWithHexString:@"0x3bbc79"]];//设置UITextField的光标颜色 [[UITextView appearance] setTintColor:[UIColor colorWithHexString:@"0x3bbc79"]];//设置UITextView的光标颜色 [[UISearchBar appearance] setBackgroundImage:[UIImage imageWithColor:[UIColor colorWithHexString:@"0xe5e5e5"]] forBarPosition:0 barMetrics:UIBarMetricsDefault]; textAttributes = @{ NSFontAttributeName: [UIFont boldSystemFontOfSize:kNavTitleFontSize], NSForegroundColorAttributeName: [UIColor whiteColor], }; [navigationBarAppearance setBackgroundImage:[UIImage imageWithColor:[UIColor colorWithHexString:@"0x28303b"]] forBarMetrics:UIBarMetricsDefault]; [navigationBarAppearance setTitleTextAttributes:textAttributes];
0 0
- 设置全局导航,button,UITextField样式
- IOS UINavigationBar 导航栏 全局样式设置
- UITextField 设置键盘样式
- button样式设置
- 设置Button样式
- 设置导航条样式
- 全局改变text及Button 的样式
- 定制全局的导航栏样式
- iOS设置全局状态栏样式
- WPF设置全局控件样式
- 安卓 Button 样式设置
- 为手写UIButton、UITextField设置边框样式
- 安全卫士6---导航设置页面的完成——style/button样式/9妹图的制作
- IOS,Tabbar,设置全局导航UINavigationBar
- 设置控件全局显示样式appearance proxy
- 快译V5全局样式设置
- FLEX4 设置全局样式 的方法
- iOS全局设置navigation的样式
- 第五周项目四—静态成员的应用
- 获取被选中的单选按钮的值
- 阿里巴巴2016之小赵和小钱
- Java打印文字点阵信息
- C语言 编写程序实现库函数strlen的功能
- 设置全局导航,button,UITextField样式
- 希尔排序
- android技术文章链接总混
- 把vss整合到Eclipse(Myeclipse)中
- 【翻译自mos文章】将一个失败的primary database 复原为physical standby 库的步骤
- Floyd算法
- win7安装Ubuntu 14.04LT(双系统)
- 算法训练 K好数
- memcpy函数的优化过程