Xcode 6 GM iPhone 6模拟器 - 没有正确调整大小的故事板,看起来放大了 [英] Xcode 6 GM iPhone 6 Simulator - Storyboards not sizing correctly, appear zoomed in

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

问题描述

我正在使用新的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模拟器 - 没有正确调整大小的故事板,看起来放大了的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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