Can't scale device window in iOS Simulator

2019-01-15 17:45发布

On the 24" iMac I'm using at work I cannot scale the iOS Simulator's window. The 100% and 50% menu entries are greyed out (and the keyboard shortcuts don't work either.)

On my Mac Mini at home, it's fine. I've searched high and low for someone with a similar problem, and can't find anything logged. Any ideas?

7条回答
可以哭但决不认输i
2楼-- · 2019-01-15 18:24

I solved this problem by changing the resolution of my Macbook Pro screen to biggest supported value, And increase the size of the simulator by drag and it's work! I can now attach iPad screenshot. Thanks Apple it's totally easy like always!.

查看更多
霸刀☆藐视天下
3楼-- · 2019-01-15 18:25

Even in xcode9 it won't let you set the scaling to 100% if your screen can't accommodate that, but you can cheat.. ..just choose landscape orientation and if the width of the device will fit the height of the screen, you can choose 100%, and then rotate the device even if it won't all fit on screen.

查看更多
Deceive 欺骗
4楼-- · 2019-01-15 18:26

I can confirm that @Abdulaziz Noor method of changing the resolution of your mac display works.

Steps I took:

System Preferences -> Displays -> Display -> Scaled -> More Space 
查看更多
啃猪蹄的小仙女
5楼-- · 2019-01-15 18:30

For Xcode 9, we detect the size of your screen. If it isn't large enough to display the window we disable the relevant scaling option.

As Krunal points out you can now drag to scale the window to whatever arbitrary size you want so this shouldn't be a problem. (In previous releases you could only pick from pre-defined sizes; the window itself was not resizable).

查看更多
ゆ 、 Hurt°
6楼-- · 2019-01-15 18:31

If you are just wanting a 100% screen shot you can just drag it to be anything at least as big as 100% and the screenshot will be the same as a 100% screenshot.

查看更多
淡お忘
7楼-- · 2019-01-15 18:43

The options will only be there if your screen is not large enough to show the window at 100%.

查看更多
登录 后发表回答