Reputation: 243
I need to make screen shots (specifically iPad Pro 12.9") for the App Store. I resized the simulator to fit it on my mac's screen. Now I can't resize it back to 100%, which is required to make a new screen shot. Both sizing options, Physical Size (Cmd-1) and Pixel Accurate (Cmd-2) are grayed out. How do I reset the simulator back to 100%?
Workaround: I was able to manually resize the simulator window using the mouse to grab the corner (the new way to adjust size in 9.1). Using trial-and-error by resizing, making new screen shots, and checking the resulting pixel dimensions, I was able to manually get it back to 100% (2048x2732). The original question still remains; is there a way to reset the simulator to 100% without using this workaround?
Upvotes: 24
Views: 9956
Reputation: 25
Using Xcode 11 the "Optimize Rendering for window scale" is not present anymore. Just select default simulator for iPhone Pro Max and make screenshot with ⌘ + S
You will have 1242 x 2688 px screenshots saved on Desktop
Upvotes: 2
Reputation: 4963
The real reason why the pixel accurate size option is greyed out is because your screen resolution is too low to fit the device with that size. Solution is to increase your screen resolution temporarily under system settings > display in mac os.
Upvotes: 3
Reputation: 71
On Simulator 10.0 (Xcode 9.4.1)
Hardware > Rotate Left or Rotate Right
and this will re-enable Physical Size selection (Window > Physical Size) if it got disabled/ grayed out
Upvotes: 2
Reputation: 846
I could get the screen shot with resolution of (2048x2732) deactivating the option of "Optimize Rendering for Window Scale"
Upvotes: 20
Reputation: 748
I have an Apple Thunderbolt Display, and the Simulator shrinks the window to fit the display. However, if I press Cmd+S to make the screenshot the resulting PNG still has the 100% size of 2048x2732. No need to play with bezels or corners :-)
Upvotes: 1
Reputation: 796
You can make it to default size by pressing the Zoom option in the simulator window option.The Zoom option will get enable when the physical size is selected.
Upvotes: 1
Reputation: 21
In xcode(mine is 9.1), uncheck Window->Show Device Brezels to make changes on simulator, then check it to make screenshots.
Upvotes: 2
Reputation: 264
Just resize up the simulator window dragging until the size reaches a size greater than or equal the original size, this worked for me.
Upvotes: 24
Reputation: 41
1.Close/Quit simulator
2.Xcode 9.1 >> Window >> “Devices and Simulartors” >> "Simulartors", then remember the device identifier you want to set
3.Then open the file
~/Library/Preferences/com.apple.iphonesimulator
4.Find out simulator device id you want to set
5.Set "SimulatorWindowLastScale" value = 1
Upvotes: 2
Reputation: 79
Though resizing of simulator using Cmd + 1...5 is now disable however, you can resize it by dragging simulator with pointer is available like any normal window on OS X. You can resize it by dragging simulator either from right or left or bottom.
Upvotes: 2
Reputation: 906
Once you have launched the simulator and you want to get the normal size back, click the simulator, then, go to Window, select scale option, then choose the actual size. That will solve that.
Upvotes: 0