UINavigationBar全局方式自定义
来源:互联网 发布:plc网络名称 编辑:程序博客网 时间:2024/06/06 05:11
UIImage *backButtonImage = [[UIImage imageNamed:@"navbar_ic_back.png"] resizableImageWithCapInsets:UIEdgeInsetsMake(0, 30, 30, 30)];
[[UIBarButtonItem appearance] setBackButtonBackgroundImage:backButtonImage forState:UIControlStateNormal barMetrics:UIBarMetricsDefault];
[appearance setBackButtonBackgroundImage:leftButton
forState:1
barMetrics:UIBarMetricsDefault];
UIImage *image = [UIImage imageNamed:@"navbar_ic_back.png"];
image = [image imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
navigationBar.backIndicatorImage = image;
navigationBar.backIndicatorTransitionMaskImage = image;
navigationBar.tintColor = [UIColor whiteColor];
//title加阴影
NSShadow *shadow = [[NSShadow alloc] init];
shadow.shadowColor = [UIColor colorWithRed:0.0 green:0.0 blue:0.0 alpha:0.8];
shadow.shadowOffset = CGSizeMake(0, 1);
[navigationBar setTitleTextAttributes: [NSDictionary dictionaryWithObjectsAndKeys: [UIColor colorWithRed:245.0/255.0 green:245.0/255.0 blue:245.0/255.0 alpha:1.0], NSForegroundColorAttributeName, shadow, NSShadowAttributeName, [UIFont fontWithName:@"HelveticaNeue-CondensedBlack" size:21.0], NSFontAttributeName, nil]];
- UINavigationBar全局方式自定义
- 自定义UINavigationBar
- 自定义UINavigationBar
- 自定义UINavigationBar
- 自定义UinavigationBar
- 自定义UINavigationBar
- 自定义UINavigationBar
- UINavigationBar 自定义
- 自定义UINavigationBar
- 自定义UINavigationBar
- UINavigationBar自定义
- 自定义UINavigationBar
- 自定义UINavigationBar的背景
- 自定义UINavigationBar的背景图片
- 自定义UINavigationBar和UISearchBar
- UINavigationBar自定义导航栏
- 自定义UINavigationBar背景
- 自定义UINavigationBar的属性
- CSS-同一个li下,图片和文字一起,如何使得全部垂直居中
- Oracle数据库--序列/索引/触发器(一.序列)
- Android4.4设置windowSoftInputMode失效问题的解决方案
- javascript数组(array)的常用方法(shift/unshift/pop/push/concat/splice/reverse/sort/slice/join)
- 03.联合体
- UINavigationBar全局方式自定义
- 剑指offer——30.连续子数组的最大和
- 浅谈MSSQL2012中的列存储索引(columnstore indexes)
- 介绍几个不错的开发Web App & Ajax的框架
- 基于FPGA Uart串口通信实验
- pat 乙级 1018. 锤子剪刀布 (20)
- SciPy中两个模块:io 和misc
- 关于引入jQuery文件和使用jQuery取同胞兄弟的值问题
- 汉诺塔(河内塔)算法与心得