iPhone/iOS状态栏未隐藏在Xcode项目中 [英] iPhone/iOS Status bar not hiding in Xcode project

查看:92
本文介绍了iPhone/iOS状态栏未隐藏在Xcode项目中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我尝试了以下操作,但是无法从应用程序中删除状态栏:

Hi I have tried the following but am unable to remove the status bar from my application:

  1. 设置状态栏最初在plist中隐藏为YES
  2. 在应用程序启动期间隐藏"以在项目常规"设置中打勾
  3. 在控制视图控制器的界面构建器文件中将状态栏设置为无"
  4. 设置[UIApplication sharedApplication] .statusBarHidden = YES;在应用程序委托中.

所有这些功能以前在我以前完成的100个应用程序中都能正常工作,但是最近进行了xcode升级.

All these used to work fine in the 100 applications I did before but I made a recent xcode upgrade..

还有其他一些秘密方法可以消除应用程序中的状态栏吗?我需要前往苹果总部杀死一条红龙吗?

Is there some other secret way of getting rid of the status bar in the app? Do I need to journey to Apple headquarters and slay a red dragon ?

推荐答案

找到了解决方法

在您的应用程序plist文件中添加一行名为查看基于控制器的状态栏外观"并将其设置为否"

In your apps plist file add a row call it "View controller-based status bar appearance" and set it to NO

来源- OPENFL

这篇关于iPhone/iOS状态栏未隐藏在Xcode项目中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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