问题
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.
回答1:
The Simulator window only shows an iPhone (4/4s) bezel when:
The simulated device is a 3.5 inch non-Retina iPhone, and
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.
回答2:
First of all this does with retina devices.
STEP 1: Follow this step if you using Xcode 5
as you need to download the iOS
simulator.
Go to XCode
,
- Open the main XCode
Preferences
option thenDownloads
. Click oniOS 6 Simulator
Change to the simulator you want by going to the "Hardware" menu. Close the simulator. Run the project.
STEP 2:
As you required just change device from Hardware -> device to iPhone as shown in the image.
And in the next step be sure set the window scale to 100 %
.
回答3:
For some reason it looks like an iPhone on my retina Macbook Pro, but not on my iMac. They're probably looking at the resolution of the Mac, which doesn't really make sense, since you see less at 2880x1800 retina, than 1920x1080 non retina.
回答4:
The problem I think is not with your XCode, but with your display. Check this : iPhone skin on Simulator
回答5:
Check this Goto IOS Hardware >>Device >>iPhone then window +1
回答6:
Unfortunately it works like that for anything else - there is no option to show a case for any other simulators.
回答7:
Absolutely correct, im using IOS simulator 7.0, there is no option regarding this. i did every possible step to make it look like iPhone but hard luck IOS simulator not having this option in Devices.
回答8:
I've had this issue also. As indicated earlier, I went to preferences, downloads and then clicked on the ios 6.1 download. After installing it gave me the option of the "iphone". This option actually looks like the iphone. After the install it still includes the retina options as well.
回答9:
It could be a scaling issue. In the simulator toolbar, go to Window -> Scale, and make sure that 100% is checked. Regarding how to enable iPhone non-retina if not shown, I wrote some steps in my blog on how to do it.
来源:https://stackoverflow.com/questions/19245853/xcode-iphone-simulator-does-not-look-like-an-iphone