相关疑难解决方法(0)

故事板Global Tint UITabBar Tint在IOS 7.1中发生了变化

我是否忽略了使用Global Tint设置应用程序整体色彩的东西?

在IOS 7.1更新后,今天在IOS 7.06中运行的应用程序突然发生了变化.

基本故事板,基于标签的应用程序,全局色调(橙色)设置在IB的故事板中.

今天更新到IOS 7.1 IPhone 5S,它显示标准的蓝色色调

iPhone 4 IOS 7.06,相同的应用程序TabBar色调是应有的.

不得不设置如下

[[UITabBar appearance] setTintColor:[UIColor orangeColor]];
Run Code Online (Sandbox Code Playgroud)

在TabBarControllers ViewDidLoad中纠正问题.

难道我有别的东西设置不正确吗?

uitabbarcontroller ios

22
推荐指数
1
解决办法
5009
查看次数

如何让UITabBar选择指标图像填满整个空间?

我有一个UITabBarController,我使用此代码来设置选择指标图像:

let selectedBG = UIImage(named:"tabbarbgtest.png")?.resizableImageWithCapInsets(UIEdgeInsetsMake(0, 0, 0, 0))
UITabBar.appearance().selectionIndicatorImage = selectedBG
Run Code Online (Sandbox Code Playgroud)

但是图像并没有填满整个空间 - 见下图:

在此输入图像描述

图像只是一个红色正方形,在82x49px上有一个解决方案,但是如果图像更宽,它仍然无法填满整个空间.希望你们能帮忙 - 谢谢.

uitabbarcontroller uiimage ios swift

12
推荐指数
3
解决办法
9832
查看次数

UITabBar在iOS7上更改一个UITabBarItem的背景颜色

我可以改变一个特定的背景颜色UITabBarItemUITabBar

我知道如何更改所选背景的所有背景,使用:

[[UITabBar appearance] setBarTintColor:[UIColor redColor]];
[[UITabBar appearance] setTintColor:[UIColor blueColor]];
[[UITabBar appearance] setSelectedImageTintColor:[UIColor yellowColor]];
Run Code Online (Sandbox Code Playgroud)

但是如果没有子类化,它只能用于一个项吗?

谢谢

objective-c uitabbaritem uitabbar ios ios7

7
推荐指数
2
解决办法
8685
查看次数