How to resize the iPhone/iPad Simulator?

2019-01-03 23:45发布

The iPad-simulator is really small (like one third the size of the real iPad screen) on my 23" Full-HD screen (and also on the 15" MacBook Pro).

Is there a way to resize it?

I know it must maintain size and dpi-ratio to prevent sub-pixels, but I can hardly see anything withoout a magnifier.

10条回答
来,给爷笑一个
2楼-- · 2019-01-04 00:24

For Xcode 9.4 this is the only thing which worked: -Uncheck "Optimize rendering for window size" in the "Debug" menu. -take a *screen shot using "⌘s" or "New screen shot" from the file maenu.

*note - it doesn't matter what size the simulator is, the screen shot will be the correct size for uploading to iTunes Connect

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

For XCode 10 I ended up having to do

defaults delete ~/Library/Preferences/com.apple.iphonesimulator DevicePreferences

I just could not find any other way to reset zoom level. Even using Window->Zoom to toggle zoom, would not restore back to 100% (2042x2732 iPad 12.9-inch).

Deleting device preferences allowed the simulator to open at full resolution again, so I could take the screen shots required for app store submission.

The Physical Size and Pixel Accurate options remain greyed out.

查看更多
\"骚年 ilove
4楼-- · 2019-01-04 00:26

For Xcode 9, Beta 6: Deselect "Show Device Bezels" under Window menu. Then Cmd + 2 should scale to 100% (Window Menu -> Scale -> 100%).

Tested using 15" Macbook Pro (2017 Model).

查看更多
等我变得足够好
5楼-- · 2019-01-04 00:26

But in the smaller screens(MacBook Pro 15-Inch), I can't scale it more than the screen size

There are little utilities that allows you to set your display resolution much higher as the System Preference may offer you.

For instance, if u need 12.9-Inch Retina Display screenshot with a resolution of 2048 x 2732 pixels for portrait. I simply use one of these utilities (e.g.: Display Menu from the App Store) to set my Macbook Pro 2017 Retina display to 3360x2100.

After that I start the Xcode Simulator with a 12,9" iPad Retina and resize the Simulator to the maximum of the screen. As a result, I get exactly 2048 x 2732 which is ready to upload to the App Store.

enter image description here

Hope that is useful for someone.

查看更多
再贱就再见
6楼-- · 2019-01-04 00:27

Xcode 9.x

You can resize any simulator in the same way of expanding any windows in Mac. Move the mouse over the corner of any simulators and the pointer changes. Click and drag to expand/shrink the simulator. Verified using Xcode 9.2

查看更多
Luminary・发光体
7楼-- · 2019-01-04 00:30
  1. Look at this picture.
  2. See the red tips.
  3. You can resize your ios simulator easy.

screen shot

查看更多
登录 后发表回答