将NavigationBar设置为“黑色半透明"时出现问题.风格 [英] Problem when set NavigationBar to "Black Translucent" style

查看:34
本文介绍了将NavigationBar设置为“黑色半透明"时出现问题.风格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在用Objective-C开发一个应用程序,然后在该应用程序中将NavigationBar设置为半透明(通过IB).但是问题在于视图显示在导航栏的后面.

I'm developing an app in objective-c and in that app set the navigationBar to translucent(through IB). But the problem is that the view displayed behind the navigation bar.

还有其他人尝试过使用半透明导航栏吗?

Anybody else tried working with translucent navigation bars?

致谢

Jayaraj

推荐答案

从OS 3.0开始,[navigationController视图]会自动调整为"underlap"半透明导航栏

The [navigationController view] automatically resizes to "underlap" translucent navigation bars as of OS 3.0

您可以简单地将44个像素添加到origin属性的y值来解决此问题.

You can simply add 44 pixels to the y value of the origin property to overcome this.

这篇关于将NavigationBar设置为“黑色半透明"时出现问题.风格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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