优化最新的iPad Pro Simulator [英] Optimization for newest iPad Pro Simulator

查看:115
本文介绍了优化最新的iPad Pro Simulator的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经安装了最新的Xcode 7.1 beta并尝试在iPad Pro Simulator上运行我的项目。一切都是正确的,所有功能都正常。

I have installed the newest Xcode 7.1 beta and trying to run my project on the iPad Pro Simulator. Everything is right and all of the features work correct.

但我的屏幕大小有问题...

But I have an issue with the screen size...

在我运行的应用程序主屏幕上下一个日志:

On the main screen of application I run the next log:

NSLog(@"%f", self.view.bounds.size.width);

我有1024面向横向。但是当我在Xcode 7.1中创建一个新的应用程序并在主屏幕上运行相同的代码时,我得到了另一个值:1366。

I have 1024 for landscape orientation. But when I create a new application in Xcode 7.1 and run the same code on the main screen I get another value: 1366.

今天我计划在项目文件之间找到差异使用Araxis Merge在旧的Xcode(6.4)和最新的beta 7.1中创建。

Today I plan to find diffs between project files created in old Xcode (6.4) and newest beta 7.1 using Araxis Merge.

你现在如何为我的旧项目解决这个问题?

Do you now how to fix this issue for the my old project?

推荐答案

我可能会离开这里,但我遇到了与iPad Pro模拟器类似的问题:它一直给我标准的1024 * 768点分辨率。经过一番挖掘,我意识到我正在使用标准的iPad发布图像(因为资产目录中没有iPad Pro版本),这限制了我的屏幕保持1024 * 768点。一旦我推出了一个发布故事板,一切都已落实到位,我的应用程序以正确的1366 * 1024点大小启动。

I may be way off here, but I was having a similar problem with the iPad Pro simulator: it kept giving me the standard 1024*768 point resolution. After some digging, I realized that I was using the standard iPad launch image (since there is no iPad Pro version in the asset catalog), which restricted my screen to remain 1024*768 points. Once I introduced a launch storyboard, everything fell into place, and my app launched with the correct, 1366*1024 point size.

这篇关于优化最新的iPad Pro Simulator的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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