Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I am working on a Philips 19" and upgraded Xcode to version 4.3.2. On the new "Retina Display" on iPad 3 (oh, sorry, on The New iPad) my iPad simulator changes it's resolution and the simulator has vertical and horizontal scroll bars!

How do I change the resolution of the an iOS simulator?

like image 491
Aleksey Potapov Avatar asked May 07 '12 11:05

Aleksey Potapov


4 Answers

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.

like image 191
mbm29414 Avatar answered Nov 19 '22 15:11

mbm29414


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.

like image 29
Saurabh Avatar answered Nov 19 '22 16:11

Saurabh


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

like image 3
John Cummings Avatar answered Nov 19 '22 16:11

John Cummings


In the menu bar:

Hardware -> Device -> iPad

like image 1
Evan Mulawski Avatar answered Nov 19 '22 15:11

Evan Mulawski