如何在 Xcode 4.6 中将 iOS 模拟器上的设备设置为 iPhone 5?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/18830109/
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 03:48:11  来源:igfitidea点击:

How can I set the device on the iOS Simulator as an iPhone 5 in Xcode 4.6?

iosxcodeios-simulator

提问by mofodox

How can I set the device on the iOS Simulator as an iPhone 5 in Xcode 4.6? I've been trying to change it via the Hardware->Device option but still to no avail. I really appreciate your help! Thanks.

如何在 Xcode 4.6 中将 iOS 模拟器上的设备设置为 iPhone 5?我一直在尝试通过硬件-> 设备选项更改它,但仍然无济于事。我真的很感谢你的帮助!谢谢。

回答by rckoenes

In Xcode 4.6 this is not possible, you will just have to keep the iOS simulator open. Apple did fix this issue in Xcode 5.

在 Xcode 4.6 中这是不可能的,你只需要保持 iOS 模拟器打开。Apple 确实在 Xcode 5 中修复了这个问题。

The iPhone 5 chrome (image that make the iOS simulator look like the iPhone5) will only been shown it there is enough space to present it. Other which it will just be a normal window, the working of the simulator are the same.

iPhone 5 chrome(使 iOS 模拟器看起来像 iPhone5 的图像)只会显示它有足够的空间来展示它。其他只是一个普通窗口,模拟器的工作是一样的。

You can just select device->iPhone(Retina 4-inch)and use for example Windows->50%to make the simulator fit your screen.

device->iPhone(Retina 4-inch)例如Windows->50%,您只需选择并使用即可使模拟器适合您的屏幕。

回答by Bill Burgess

In 4.6, the iPhone 5 is the 4" iPhone option. This is current for Xcode 4.6.3.

在 4.6 中,iPhone 5 是 4" iPhone 选项。这是 Xcode 4.6.3 的最新版本。

enter image description here

在此处输入图片说明

回答by Shehbaz Khan

first go to hardware then device then iphone (Retina 4 inch) then u can go to window then scale if you want to change the size of simulator to look same like iphone 5

首先转到硬件,然后是设备,然后是 iphone(Retina 4 英寸),然后如果您想将模拟器的大小更改为与 iphone 5 相同,您可以转到窗口然后缩放