显示iOS 8横向的状态栏 [英] Display status bar on landscape orientation for iOS 8

查看:114
本文介绍了显示iOS 8横向的状态栏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前正在使用XCode6。由于此版本的XCode仅支持iPhone4及更高版本的操作系统版本(7.0.3以上)。

Currently using XCode6 at the moment. Since this version of XCode only supports iPhone4 and above with OS version (7.0.3 onwards).

我将此应用程序设计为横向显示所有视图在故事板中。使用版本7.0.3测试应用程序很好,状态栏仍然可见。对于状态栏被隐藏的8.0版本来说不一样。

I have this application solely designed with a landscape orientation to all of the views in the storyboard. Testing the application using version 7.0.3 was fine, the status bar was still visible. It wasn't the same for version 8.0 wherein the status bar was hidden.

我的问题是如何在我支持横向的应用程序上显示状态栏版本7.0.3以上。谢谢。

My question is how is it possible to display the status bar on my landscape oriented application that supports version 7.0.3 onwards. Thanks.

推荐答案

我不确定这是不是正确答案。然而这个有效但iPhone6 / iPhone6Plus上有一个小故障,它在应用程序启动时不显示。

I'm not sure if this is the right answer. Yet this one works but there's a glitch on iPhone6/iPhone6Plus, it doesn't get displayed upon application start.

[application setStatusBarHidden: NO];

这篇关于显示iOS 8横向的状态栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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