应用程序不使用iPhone 5的全高 [英] App not using full height of iPhone 5

查看:70
本文介绍了应用程序不使用iPhone 5的全高的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个很久以前创建的应用程序,并将其更新为使用Storyboard。所有观点都经过重建和勾结。但是,应用程序不使用iPhone 5的整个高度,即使在故事板中,它显示它们根据屏幕的大小进行调整。实际上,启动屏幕都没有出现。它只是一个黑屏。

I have an App that was created a long time ago and updated it to use Storyboards. All the views have been rebuilt and hooked up. However, the App does not use the entire height of an iPhone 5, even though in Storyboards, it shows they adjust based on the size of the screen. In fact, none of the startup screens show up at launch. It's just a black screen.

我确实有一个适当大小和命名的全尺寸启动图像。它显示在设置的常规选项卡中。我错过了设置或需要更改的内容吗?我已经尝试了所有的东西。

I do have a full size startup image appropriately sized and named. And it shows up in the General tab of the settings. Am I missing a setting or something that needs to be changed? I have tried everything.

补充说明:我觉得它与启动时没有出现的启动屏幕有关。即使设置是所有三个启动屏幕。它只是启动时出现的空白黑屏。

Additional note: I have a feeling it has something to do with the startup screen not showing up on launch. Even though the setting is there with all three startup screens. It's just a blank black screen that appears during startup.

推荐答案

如果您将启动图像放在资产目录中,这可能是问题:

If you put your launch images in the asset catalog, this might be the problem:

在主要项目设置中(当您单击文件浏览器中的顶部条目时)在常规下,向下滚动到应用程序图标和启动图像。那里有一个Launch Images Source的条目。您可能会看到一个类似使用资产目录的按钮。当您单击它时,Xcode会要求您将启动图像迁移到资产目录。继续这样做,虽然它可能只是创建一个新的空启动图像集,您可以稍后删除。完成后,您应该看到按钮所在的下拉列表,然后您可以选择实际的启动图像。然后,如果需要,您可以进入资产目录并删除Xcode刚创建的启动图像集。

In the main project settings (when you click on the top entry in the file browser) under "General", scroll down about halfway to "App Icons and Launch Images". There's an entry in there for "Launch Images Source". You'll probably see a button that says something like "Use Asset Catalog". When you click it, Xcode will ask you to "migrate" your launch images to the asset catalog. Go ahead and do this, although it's probably just going to create a new empty launch image set, which you can later delete. Then after that's done, you should see a dropdown where the button was, and in there you can select the actual launch images. Then if you want, you can go into the asset catalog and remove the launch image set that Xcode just created.

请参阅下面的照片,确保Launce Screen File有一个进入!

See the photo below, make sure Launce Screen File has an entry!

这篇关于应用程序不使用iPhone 5的全高的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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