如何在iPhone主窗口中隐藏标题栏 [英] How to hide the title bar in the iPhone main window

查看:89
本文介绍了如何在iPhone主窗口中隐藏标题栏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这个问题可能很容易回答,因此如果我错过了明显的内容,我深表歉意. 我正在iPhone上开发GUI应用程序,并希望隐藏通常显示运营商/时间/电池的iPhone的标题/状态栏. 如何在给定主UIWindow和UIView的代码中执行此操作?

This question might be very easy to answer so I apologize if I missed the obvious. I'm developing a GUI application on the iPhone and want to hide the title/status bar of the iPhone which usually displays the carrier/time/battery. How can I do this from within the code given the main UIWindow and UIView?

-A

推荐答案

在Info.plist文件中,将UIStatusBarHidden设置为true或将以下内容添加到您的应用程序委托中:

In your Info.plist file, set UIStatusBarHidden to true or add the following to your application delegate:

[[UIApplication sharedApplication] setStatusBarHidden:YES];

这篇关于如何在iPhone主窗口中隐藏标题栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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