全屏UIView,状态栏和导航栏覆盖在顶部 [英] Fullscreen UIView with Status bar and Navigation Bar overlay on the top

查看:127
本文介绍了全屏UIView,状态栏和导航栏覆盖在顶部的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

实现UIView之上的状态栏和导航栏的正确方法是什么?

What is the proper way to implement the status bar and navigation bar that go on top of an UIView?

替代文字http://img.skitch.com/20081217-t78sdixk37hqgdh1ia2fgec4st.png

推荐答案

只需在视图控制器中设置想要全屏布局。这解决了我的问题。

Just set "wants fullscreen layout" in your view controller. That solves the problem for me.

self.wantsFullScreenLayout = YES;

这篇关于全屏UIView,状态栏和导航栏覆盖在顶部的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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