iOS 7 的变化,UITabBarItem
来源:互联网 发布:闲在家里的日子 知乎 编辑:程序博客网 时间:2024/05/29 10:17
if( ([[[UIDevicecurrentDevice] systemVersion]doubleValue]>=7.0)) {
tabBarItemImage = [tabBarItemImage imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
tabBarItemSeletedImage = [tabBarItemSeletedImage imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
tabBarItem = [[UITabBarItem alloc] initWithTitle:@"会员" image:tabBarItemImage selectedImage:tabBarItemSeletedImage];
[selfresetTabbarItemTextColor:tabBarItem];
}
//修改tab的字体颜色。
- (void) resetTabbarItemTextColor:(UITabBarItem *) tabBarItem{
[tabBarItem setTitleTextAttributes:[NSDictionarydictionaryWithObjectsAndKeys:
[UIColorwhiteColor], UITextAttributeTextColor,
nil] forState:UIControlStateNormal];
[tabBarItem setTitleTextAttributes:[NSDictionarydictionaryWithObjectsAndKeys:
[UIColorwhiteColor], UITextAttributeTextColor,
nil] forState:UIControlStateHighlighted];
}
//NavigationBar与UIViewController重叠的问题。
if( ([[[UIDevicecurrentDevice] systemVersion]doubleValue]>=7.0)) {
self.edgesForExtendedLayout= UIRectEdgeNone;
}
- iOS 7 的变化,UITabBarItem
- IOS 7修改UITabbar背景图片、UITabBarItem图片以及UITabBarItem的文字颜色.
- iOS开发--一些UITabBarItem属性的设置
- iOS ---UITabBarItem 选中图
- iOS UITabbarItem image
- iOS——UITabBarItem
- iOS如何自定义的设置UITabbarItem的badge
- iOS UITabBarItem去掉系统自带的渲染效果
- iOS 解决UITabBarItem选中图片默认为蓝色的方法
- IOS更改UITabBarItem的图片及字体颜色
- [ios]UITabBarItem 更改图像的高度和宽度
- ios 两种方法设置tabBar的UITabBarItem
- ios开发之修改UITabBarItem的默认字体大小、颜色
- UITabBarItem文字的设置
- UITabBarItem色调的改变
- IOS UINavigationController 中添加UITabBarItem
- iOS开发- UITabBarItem自定义图片
- iOS 7 的12大变化
- 关于java的split方法的转义用法
- java 泛型 深入<转>
- ios动画图片的插入,并使用UISloder控制图片的动画速度
- objective-c 中随机数的用法 (3种:arc4random() 、random()、CCRANDOM_0_1() )以及利用随机数的随机排列组合
- python 文件编码问题
- iOS 7 的变化,UITabBarItem
- Zygote进程启动过程源代码分析
- java String 中文 字符串 截取
- 在现有struts2+hibernate项目中整合spring框架
- Python自学笔记(一)变量类型
- MAC地址
- 如何还原 sql server 中的备份文件(.bak文件)
- ArcGIS Web API 接入E都市瓦片
- Spring MVC笔记