xcode 适用于 iPhone 5- 1136 x 640 分辨率的 iOS 模拟器

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/12488532/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 01:31:11  来源:igfitidea点击:

iOS simulator for iPhone 5- 1136 x 640 resolution

iphoneiosxcode

提问by damithH

Possible Duplicate:
How to test apps for iPhone 5

可能的重复:
如何为 iPhone 5 测试应用程序

In xcode 4.2 and above we can find the both device for retina display and non retina display. that means '960-by-640-pixel resolution at 326 ppi' and '480-by-320-pixel resolution at 163 ppi' as iOS Simulator.
(in iOS Simulator menu bar, Hardware > Device > iPad/iPhone/iPhone(Retina)).

在 xcode 4.2 及更高版本中,我们可以找到用于视网膜显示和非视网膜显示的设备。这意味着作为 iOS 模拟器的“326 ppi 时的 960 x 640 像素分辨率”和“163 ppi 时的 480 x 320 像素分辨率”。
(在 iOS 模拟器菜单栏中,Hardware > Device > iPad/iPhone/iPhone(Retina))。

How can i choose device from Simulator for new iPhone 5 (1136-by-640-pixel resolution at 326 ppi) ..?

我如何从模拟器中为新 iPhone 5(1136 x 640 像素分辨率,326 ppi)选择设备?

回答by Roger

Both Richard and NSPostWhenIdle are correct. You need to updated to Xcode 4.5 GM, then you'll see an option for "iPhone (Retina 4-inch)", which is the iPhone 5 display.

Richard 和 NSPostWhenIdle 都是正确的。您需要更新到 Xcode 4.5 GM,然后您将看到“iPhone (Retina 4-inch)”选项,即 iPhone 5 显示屏。