iPhone5s(iOS 7)中的Xcode 6故事板屏幕大小错误但不是(iOS 8) [英] Xcode 6 storyboard screen size wrong in iPhone5s(iOS 7) but not (iOS 8)

查看:205
本文介绍了iPhone5s(iOS 7)中的Xcode 6故事板屏幕大小错误但不是(iOS 8)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用swift创建了一个使用xcode 6.0.1的新项目,并将部署目标设置为iOS 7.0。

I created a new project with xcode 6.0.1 using swift and set deployment target to iOS 7.0.

iOS7中iPhone 5s的屏幕尺寸错误 - 它不应该有任何黑色空格。

The screen size is wrong for iPhone 5s in iOS7 - it shouldn't have any black spaces.

推荐答案

在新的Xcode 6项目中,您没有这些Default-568h@2x.png图像。

In new Xcode 6 projects, you don't have these Default-568h@2x.png images.

执行下一步修复:

1)打开Images.xcassets并寻找 LaunchImage 即可。它可能缺失。

1) Open your Images.xcassets and look for LaunchImage. It is probably missing.

2)在这种情况下,单击+(位于底部)并单击New Launch Image。

2) In this case, click on + (located at the bottom) and click on New Launch Image.

3)选择项目目标并打开构建设置选项卡。查找资产目录编译器 - 选项部分,然后选择资产目录启动图像集名称,如果它是空类型LaunchImage。

3) Select your project target and open Build Settings tab. Look for "Asset Catalog Compiler - Options" section and then "Asset Catalog Launch Image Set Name", if it is empty type LaunchImage.

Voila!

这篇关于iPhone5s(iOS 7)中的Xcode 6故事板屏幕大小错误但不是(iOS 8)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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