UINavigation.title相关属性设置
来源:互联网 发布:国泰安数据库是免费吗 编辑:程序博客网 时间:2024/05/01 17:44
还可以通过titleTextAttriutes属性定制UIBarButton。setTitleTextAttributes:方法用一个NSDictionary参数指定所需选项:
UITextAttributeTextColor,定制文字颜色。
UITextAttributeTextShadowColor,定制文字的阴影色。
UITextAttributeTextShadowOffset,定制阴影的偏移位置。
UITextAttributeFont,定制文本字体。
// Settitletext attributes
NSMutableDictionary *attributes= [[NSMutableDictionary alloc] init];
[attributessetValue:[UIColor blackColor] forKey:UITextAttributeTextColor];
[attributessetValue:[UIColor whiteColor] forKey:UITextAttributeTextShadowColor];
[attributessetValue:[NSValue valueWithUIOffset:UIOffsetMake(0, 1)]forKey:UITextAttributeTextShadowOffset];
[attributessetValue:[UIFont fontWithName:@"Verdana"size:0.0] forKey:UITextAttributeFont];
[[UIBarButtonItemappearance] setTitleTextAttributes:attributes forState:UIControlStateNormal];
[attributesrelease];
- UINavigation.title相关属性设置
- UI导航栏(UINavigation)相关属性left\rightButton,导航栏title,系统时间颜色的设置
- UINavigation相关
- 设置navbar的title属性
- Tomcat设置cmd窗口的title属性
- 设置导航控制器的Title的属性
- UINavigation
- aspxGridView 相关属性设置
- frameset属性相关设置
- frameset属性相关设置
- UITabbar 相关属性设置
- vstudio相关属性设置
- ListView 相关属性设置
- 设置UINavigation的背景图片和背景颜色
- 设置UINavigation的背景图片和背景颜色
- jsf通过标签方式设置组件title属性
- ios7 关于searchbar上设置cancelButton的title属性
- iOS UIButton同时设置title和image属性
- C++、VC++、MFC的区别和联系
- cmd下 修改语言环境
- linux shell 字符串操作
- Objective-C ,ios,iphone开发基础:JSON解析(使用苹果官方提供的JSON库:NSJSONSerialization)
- MFC 动态创建控件
- UINavigation.title相关属性设置
- linux socket 详解
- 命令行查看memcache状态
- MFC 选项卡控件 Tab Control 的使用
- 用overlays合并多个war
- Android Activity 各函数解析
- shell 逻辑运算符、逻辑表达式
- 函数式编程初探
- linux常用的makefile模版编写