无法在xcode中调整视图大小 [英] Unable to resize view in xcode

查看:157
本文介绍了无法在xcode中调整视图大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我似乎无法调整我的视图以填充模拟器中的屏幕(请参阅下面的屏幕截图 - 注意顶部和底部黑线)是否有人知道我如何修复此问题?

I can't seem to resize my view to fill the screen in the simulator (see screenshot below - notice the top and bottom black lines) does anyone know how i fix this?

谢谢,

马特

推荐答案

此问题的原因是您尚未在项目中添加启动图像或故事板。

The reason of this issue is you have not added launch images or storyboard in your project.

您需要将启动图像添加到 xcasset 文件夹,或者您需要创建 storyboard 发布。

You either need to add launch images to your xcasset folder or you need to create storyboard for launch.

这不是自动布局的问题。

This is not the issue with auto layout.

这篇关于无法在xcode中调整视图大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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