UITableView 干扰状态栏 [英] UITableView Interfering with Status Bar

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

问题描述

我正在开发一个具有 UITableViewController 的应用程序,该应用程序显示如下所示的值列表:

I am working on an app that has a UITableViewController that displays a list of values as so:

如何将表格向下移动,使其不与我的状态栏发生冲突?看来我不能对这个场景应用任何约束,所以我不知所措.

How can I shift the table down such that it doesn't clash with my status bar? It seems that I can't apply any constraints to this scene so I'm at a loss.

推荐答案

在你的 UIViewController

self.edgesForExtendedLayout=UIRectEdgeNone;
self.extendedLayoutIncludesOpaqueBars=NO;
self.automaticallyAdjustsScrollViewInsets=NO;

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

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