Xcode 6 GM iPhone 6 Simulator - 故事板大小不正确,显示为放大 [英] Xcode 6 GM iPhone 6 Simulator - Storyboards not sizing correctly, appear zoomed in

查看:14
本文介绍了Xcode 6 GM iPhone 6 Simulator - 故事板大小不正确,显示为放大的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用新的 Xcode 6 GM Seed 并在 iPhone 6 和 iPhone 6 Plus 模拟器上测试我的应用程序.我对我之前从事的一些项目产生了奇怪的影响,即视图似乎得到了放大"效果.

I'm using the new Xcode 6 GM Seed and testing my app on the iPhone 6 and iPhone 6 Plus simulators. I'm getting a strange effect on some projects I was previously working on, namely that the views seem to be getting a "zoom in" effect.

这是一个例子.这两个视图控制器完全相同(减去不同的导航项文本),直到标签文本大小.但是,您可以看到视图看起来不同.

Here's an example. Both these view controller's are exactly the same (minus the different navigation item text), down to the label text size. However, you can see that the views appear different.

放大

正常

请注意,带有奇怪缩放效果的项目的部署目标为 8.0.

Note that the project with the weird zoom effect has a deployment target of 8.0.

注意:通过在新的 Xcode 6 GM Seed 中制作项目(无效的项目是在旧版本的 Xcode 上制作的),我得到了正常的工作.

Note: I got the normal looking one to work by making the project in the new Xcode 6 GM Seed (the projects that aren't working were made on older versions of Xcode).

推荐答案

这是默认设置,也是所有现有应用程序在新 iPhone 上运行的方式 - 它们将被放大".

This is the default and this is how all existing apps will work on the new iPhones - they will be "zoomed".

要制作实际使用额外屏幕尺寸的应用,您必须像使用 4 英寸 iPhone 一样,添加特定于两个 iPhone 6 的特定启动图像.

To make an app that actually uses the extra screen size you must, like with the 4" iPhones, add specific launch images specific to the two iPhone 6's.

如果您使用的是资产目录,请转到 LaunchImages 资产目录并为两部新 iPhone 添加新的启动图像.您可能需要右键单击并选择添加新启动图像"才能看到添加新图像的位置.

If you are using asset catalogs, go to the LaunchImages asset catalog and add the new launch images for the two new iPhones. You may need to right-click and choose "Add New Launch Image" to see a place to add the new images.

此外,使用启动屏幕 xib 文件而不是图像可以立即解决此问题,这是我们推荐的前进方式.以下是向您的应用添加启动屏幕的步骤:https://stackoverflow.com/a/25763870/422288

In addition, using a Launch Screen xib file instead of images solves this problem right away and it's the recommended way moving forward. Here are the steps to add a Launch Screen to your app: https://stackoverflow.com/a/25763870/422288

这篇关于Xcode 6 GM iPhone 6 Simulator - 故事板大小不正确,显示为放大的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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