iOS设置或修改导航栏按钮、标题
来源:互联网 发布:网络信息科技经营范围 编辑:程序博客网 时间:2024/06/05 19:04
1. 设置导航栏返回按钮:
UIButton * button = [UIButton buttonWithType:UIButtonTypeCustom];
button.frame = CGRectMake(0, 0, 44, 30);
[button setImage:[UIImage imageNamed:@"leftArrow"] forState:UIControlStateNormal];
button.imageView.contentMode = UIViewContentModeScaleAspectFit;
[button addTarget:self action:@selector(DismissViewController:) forControlEvents:UIControlEventTouchUpInside];
self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithCustomView:button];
2. 设置导航栏背景图片:
[self.navigationController.navigationBarsetBackgroundImage:[UIImageimageNamed:@"grayNavBack"]forBarMetrics:UIBarMetricsDefault];
3. 取消导航栏横线:
[self.navigationController.navigationBarsetShadowImage:[UIImagenew]];
0 0
- iOS设置或修改导航栏按钮、标题
- iOS 自定义导航栏标题和按钮
- iOS UINavigationController修改导航栏标题、按钮文字以及背景的颜色
- IOS 自定义导航栏标题和返回按钮标题
- iOS自定义导航栏标题和返回按钮标题
- IOS 自定义导航栏标题和返回按钮标题
- ios修改导航栏标题字体颜色
- ios设置导航栏背景图片、返回按钮背景、标题颜色等等
- ios设置导航栏背景图片、返回按钮背景、标题颜色等等
- iOS隐藏导航栏或返回按钮
- iOS导航栏 修改系统返回按钮
- iOS 修改导航栏按钮的位置
- IOS 改变导航栏返回按钮的标题
- IOS 改变导航栏返回按钮的标题
- IOS 自定义导航栏题目和返回按钮标题
- IOS 自定义导航栏题目和返回按钮标题
- 自定义导航栏按钮 标题
- iOS开发~设置导航条颜色,导航条标题颜色、字体大小以及导航条返回按钮及其他Item颜色
- qt 之解析 XML(QXmlStreamReader)
- C#学习之Task.ContinueWith(连续的任务)的使用
- jQuery.extend 函数及用法详细
- 获取本地图片的base64数据方法
- MySQL日期比较
- iOS设置或修改导航栏按钮、标题
- YUV到RGB转换
- 进程查看
- 用Canvas画带动画的渐变数字圆环
- 用bootstrap写轮播图片
- 读取文件然后拼装成sql语句
- Android框架之路——Studio如何导入Github开源项目
- a标签下载txt文件,不是直接打开的方式
- fscanf函数详解