iOS7标签栏变化

标签 ios ios7 xib uitabbar tabbarcontroller

在 ios 6.1 和以前的版本中我有这样的:

ios6

我需要添加对 iOS 7 的支持(并保留 5.1、6.0、6.1),但在 iOS 7 中它看起来像这样:

ios7

在 xib 文件中我在标签栏的设置:

tab bar

在标签 Controller :

tab controller

要更改什么,在哪里与以前的版本具有相似的外观?

最佳答案

您可以通过设置 tabBartintColor 来更改突出显示图标的颜色。像这样:

// Example UITabBarController
UITabBarController *tabVC = [UITabBarController alloc] init];

tabVC.tabBar.tintColor = [UIColor yellowColor];

关于iOS7标签栏变化,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19156678/

相关文章:

ios - NSPredicate 获取 child 的 child 的

ios - 来电后无法录音

ios7 - 中卫保护失败 %d 是什么意思?

ios - 无法使用内部使用 .xib 文件的 iOS 框架

ios - 一个xib,几个子类

ios - 如何在 iOS 屏幕关闭时继续监视 iBeacon?

ios - React-native渲染方法在加载时运行两次

iOS7 UINavigationItem 后退按钮标题不起作用

swift - 使用自定义初始化程序 swift 以编程方式实例化和推送 View Controller

c# - iOS 上的 MonoGame 和 MonoTouch - 横向