XCode iPhone模拟器看起来不像iPhone [英] XCode iPhone simulator does not look like an iPhone

查看:353
本文介绍了XCode iPhone模拟器看起来不像iPhone的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

愚蠢的问题,但是......在运行iPhone模拟器时,我无法看到设备外观。我不记得之后开始的XCode更新,但iPhone模拟器仅显示为一个简单的窗口而没有显示像以前一样的设备案例(请参阅此页面。


Silly question, but.. I am not been able to see the device appearance when running the iPhone simulator. I don't remember after which XCode update this started but the iPhone simulator shows only as a simple window without showing the device case like it used to be (see this image).

That's how my simulator looks like:

Is there a way to make it look like an actual iPhone 5?

EDIT: Unfortunately in my hardware->device options I see only iPhone retina (which is currently selected), but there are no more options. So it seems like the default beheaviour to look like a thin window, unless I missed out some other configuration.

Here is what I see overlayed to a user answer.

解决方案

The Simulator window only shows an iPhone (4/4s) bezel when:

  1. The simulated device is a 3.5 inch non-Retina iPhone, and

  2. The window scale is 100%.

In Xcode 5, you can't do the first one unless you download the iOS 6.1 simulator, because 3.5 inch non-Retina devices are not supported by iOS 7.

(For simulated devices other than 3.5-inch non-Retina, you'll also see a bezel at 100% scale, but this bezel doesn't look exactly like any particular device.)

If you want device images to use in promotional artwork for your app, see Apple's App Store Marketing Resources page.

这篇关于XCode iPhone模拟器看起来不像iPhone的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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