IOS中自定义导航栏标题
来源:互联网 发布:游戏无线鼠标推荐 知乎 编辑:程序博客网 时间:2024/04/30 02:07
IOS中自定义导航栏标题:
UILabel *titleText = [[UILabel alloc] initWithFrame: CGRectMake(160, 0, 120, 50)];
titleText.backgroundColor = [UIColor clearColor];
titleText.textColor=[UIColor whiteColor];
[titleText setFont:[UIFont systemFontOfSize:17.0]];
[titleText setText:@"XXX"];
self.navigationItem.titleView=titleText;
[titleText release];
IOS中自定义导航栏返回按钮:(放在pushViewController之前)
UIBarButtonItem *backItem=[[UIBarButtonItem alloc]init];
backItem.title=@"后退";
backItem.tintColor=[UIColor colorWithRed:129/255.0 green:129/255.0 blue:129/255.0 alpha:1.0];
self.navigationItem.backBarButtonItem = backItem;
[backItem release];
IOS中自定义导航栏右边按钮
UIBarButtonItem * rightButton = [[UIBarButtonItem alloc]
initWithTitle:@"回到首页"
style:UIBarButtonItemStyleBordered
target:self
action:@selector(callModalList)];
rightButton.image=[UIImage imageNamed:@"right_button.png"];
rightButton.tintColor=[UIColor colorWithRed:74/255.0 green:74/255.0 blue:74/255.0 alpha:1.0];
self.navigationItem.rightBarButtonItem = rightButton;
[rightButton release];
- IOS中自定义导航栏标题
- iOS 自定义导航栏标题和按钮
- IOS 自定义导航栏标题和返回按钮标题
- iOS自定义导航栏标题和返回按钮标题
- IOS 自定义导航栏标题和返回按钮标题
- IOS 自定义导航栏题目和返回按钮标题
- IOS 自定义导航栏题目和返回按钮标题
- IOS自定义导航按钮和标题
- 自定义导航栏按钮 标题
- ios中怎么修改导航栏标题颜色
- iOS自定义导航栏
- iOS自定义导航栏
- iOS 自定义导航栏
- 自定义iOS导航栏背景,标题和返回按钮文字颜色
- ios开发之自定义默认生成的导航栏 标题 颜色 返回按钮
- iOS 7+自定义导航栏背景,标题和返回按钮文字颜色
- ios之自定义导航栏背景,标题和返回按钮文字颜色
- iOS 自定义导航栏背景,左侧按钮,右侧按钮,及标题
- Java中实现统计一个字符串在另一个字符串中出现的次数统计
- ReportStudio进阶教程(七) - 值提示配置标题
- 专业语言:JAVA与正则表达式(下)
- International Journal of Neural Systems 2013sci 检索因子6.056
- IOS ARC 和 非ARC 之间的转换方法
- IOS中自定义导航栏标题
- 使用yii2 composer更新后报错 ::addRules()
- 专业语言:JAVA与正则表达式(上)
- cocos2dx 中的 看不懂的语法内容
- Apache Hadoop Pig 源代码分析(2)
- NYOJ 42一笔画问题||欧拉图
- NCC认证介绍
- 头文件<string.h>、<cstring>、<string>的区别
- WebService—快速实现一个基于JAX-WS的WebService项目(一)