Changing iPad/iPhone simulator resolution for Xcode 4.3.2 [duplicate]

安稳与你 提交于 2019-11-28 00:41:51

The following hotkeys should be helpful:

  • Command ⌘ + 1 (100%)
  • Command ⌘ + 2 (75%)
  • Command ⌘ + 3 (50%)
  • Command ⌘ + 4 (33%)
  • Command ⌘ + 5 (25%)

Look at menu: "Window --> Scale" to see the options.

You can enable the retina display using - Hardware -> Device -> iPad

You can press cmd + 1 or cmd + 2 or cmd + 3 to change the size of the simulator. It will load the retina images but use a smaller simulator so you don't have to scroll for your testing.

John Cummings

In addition to the cmd+1, cmd+2 and cmd+3 options under Window->Scale that zoom to 100%, 75% and 50% respectively, you can also kind of do a custom zoom amount by setting a custom preference. Namely, try setting the SimulatorWindowLastScale preference in the com.apple.iphonesimulator.plist file under ~/Library/Preferences directory. Running the following command in a terminal worked for me to be able to see the full screen of an iPad Air with iOS Simulator 8.2:

defaults write ~/Library/Preferences/com.apple.iphonesimulator SimulatorWindowLastScale "0.4"

See also https://apple.stackexchange.com/a/93313

In the menu bar:

Hardware -> Device -> iPad

You can also in Simulator -> Window to choose the Physical Size, which will make the size as large as the iPhone physical size:

The shortcut key is Cmd + 1

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!