设置item文字属性
来源:互联网 发布:apache怎么读 编辑:程序博客网 时间:2024/03/29 05:32
//设置文字颜色
if (iOS7) {
[[UITabBarItemappearance]setTitleTextAttributes:@{NSForegroundColorAttributeName: [UIColorwhiteColor]}forState:UIControlStateSelected];
}else{
[[UITabBarItemappearance]setTitleTextAttributes:@{UITextAttributeTextColor: [UIColorwhiteColor]}forState:UIControlStateSelected];
}
if (iOS7) {
[[UITabBarItemappearance]setTitleTextAttributes:@{NSForegroundColorAttributeName: [UIColorwhiteColor]}forState:UIControlStateSelected];
}else{
[[UITabBarItemappearance]setTitleTextAttributes:@{UITextAttributeTextColor: [UIColorwhiteColor]}forState:UIControlStateSelected];
}
0 0
- 设置item文字属性
- 设置文字属性
- iOS 文字属性设置
- 设置文字属性
- 设置文字段落属性
- 设置UISegmentControl的文字属性
- 设置链接文字属性-link
- QGraphicsTextItem中的item文字居中,左右靠齐设置方
- Qt QLabel文字自动换行 Qwidget设置item不可拖动
- 设置ActionBar menu文字的属性
- label指定位置文字属性设置
- TextView中文字通过SpannableString设置属性
- 设置按钮文字居中(alignment属性)
- css设置文字属性的示例
- CoreText 设置文字属性和插入图片
- CSS设置文字和段落属性
- Item 属性
- Item属性
- 第九周项目3(2)
- Installshield2010经验总结
- 设置控件所有的布局都是一样的
- HDU 2147 kiki's game 博弈
- #warning mark 去掉tabBar上面的阴影线 //去掉黑色线 [self.tabBar setShadowImage:[[UIImage alloc] init]];
- 设置item文字属性
- 【Processing入门】第九章:视频音频
- JAVA------String
- 设置item背景图片
- 思科笔试题
- hdu - 1054 - Strategic Game(树形dp)
- Windows进程的启动和退出
- ios 中 file owner 和 first response的理解
- struts中的JSP页面根据action跳转