iOS 7导航栏不透明...为什么“更多"选项卡看起来是半透明的? [英] iOS 7, navigation bar has no translucency... why does More tab look translucent?

查看:61
本文介绍了iOS 7导航栏不透明...为什么“更多"选项卡看起来是半透明的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们的品牌化方法使我们在导航和标签栏中禁用了iOS 7中的半透明属性.

Our branding approach has us disabling the translucency property in iOS 7 in navigation and tab bars.

使用标签栏控制器,所有标签的透明度都关闭,除非单击更多".如果我们在更多"列表中选择一个选项,然后返回,则半透明度消失了(正确).更改标签是正确的.

With a tab bar controller, the translucency is off for all the tabs, except when we click "more". If we choose one of the options on the "more" list, and then go back, then the translucency is gone (correctly). Changing tabs is correct.

第一次访问更多"时,我们希望不应用半透明效果.

When we go to "more" the first time, we want the translucency effect to not be applied.

复制步骤:1.具有超过5个标签的标签栏控制器.2.将透明度设置为否".3.在运行应用程序时更改水龙头.请注意,在选择了其中一项之前,更多"标签是不正确的.

Steps to Reproduce: 1. Tab bar controller with more than 5 tabs. 2. Set translucency to NO. 3. Change taps when running the app. Note that the "more" tab is incorrect until one of those items is chosen.

预期结果:所有选项卡的顶部栏应相似,以免应用半透明效果.

Expected Results: The top bar for all the tabs should be similar, that the translucency effect is not applied.

实际结果:对于更多"标签,尽管我们将其关闭,但仍会应用半透明效果.

Actual Results: For the "more" tab, the translucency effect is applied although we turned it off.

如何关闭更多"标签的半透明图片?

How do we turn off translucency for the "more" tab?

推荐答案

您是否在谈论更多"标题和编辑"按钮存在的更多"视图控制器的导航栏?您可以获取对此的引用,并将半透明属性分别设置为NO:

Are you talking about the navigation bar for the More view controller where the "More" title and Edit button exist? You can get a reference to that and set the translucent property to NO separately:

UINavigationController *navBarController = self.tabBarController.moreNavigationController;
navBarController.navigationBar.translucent = NO;

这篇关于iOS 7导航栏不透明...为什么“更多"选项卡看起来是半透明的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆