My simulator is zoomed in to about half of the screen of the iPhone 6 plus. Screenshot below. How does that come and how do I fix that?
Edit
If it might help: I'm on the newest 13" mac air running OSX Mavericks.
When on the IOS Simulator go to the tabs on the top and click Window -> Scale -> % that works best (I used 50%)
Select simulator
Select Windows ->Scale ->Resize accordingly
Done
Related
When I constrain a view to the left or right edge of the screen (Landscape) and compile for the iPhone 4 (my only development device) the content appears off the edge of the screen on both the device and the simulator. But the phone and simulator are off by different amounts. On the phone I have to inset the view by 12 points and in the simulator it is 4 points. The bottom edge seems to match the canvas. All edges match on the iPhone 5s simulator and an iPad simulation (didn't try them all).
My questions are:
What is going on? Is this Normal? Is it just the iPhone 4?
Should I not try to go to the edge of the screen? Do I need to inset all of my content by a certain amount? How much?
I can't test on every device so I need to know that my layout will work based on the design on the storyboard and the simulator.
XCODE 7.2.1
Deployment Target: 7.0
Edit: The view I was placing had "Constrain to Margins" checked. This is not compatible with IOS 7. Unchecking this seems to have solved the problem in the simulator. I will have to wait until I get back to my test station to see if the device works properly.
Edit 2: Unchecking "Constrain to Margins" did indeed fix the problem on the iPhone 4 device. The iPhone 4 cannot be upgraded past iOS 7.x so I guess I have to find the money to buy some newer development devices:(
I updated my Xcode to the latest version and one thing I notice is that the screenshot image dimension size became small.
Before I updated it when I take screenshot using the Simulators built-in "Save Screenshot" function on iPhone 6 Plus simulator. I would get 1920 * 1080, But now the image dimension is only 414 * 736.
Any thoughts?
Solution 1: (from Kip's answer)
in Simulator menu uncheck the option Debug > Optimize Rendering for Window Scale.
Solution 2:
Simulators menu chose Window->Scale->100%. (keyboard shortcut: ⌘1)
Then save screenshot (keyboard shortcut: ⌘S).
Uncheck the option Debug > Optimize Rendering for Window Scale.
This will cause the saved screenshots to be in device resolution again, without requiring you to resize the device to the point where you can't see half of it.
You can download the iOS 9.0 or 8.4 Simulator and use it from within XCode 7.1. They save screenshots at the device's native resolution instead of the scaled resolution.
If you want to take screenshots for the iPad Pro (which only runs iOS 9.1), you're stuck having to change back to 100% scale each time. A keyboard shortcut for this is ⌘1, ⌘S, ⌘3
On Xcode 12 select Prefer Discrete GPU to fix this.
File > GPU Selection > Prefer Discrete GPU
My iOS Simulator only show the content as a part of the screen. How can I fix it? I'm using XCode 6.3.1. Thanks
You just need to restart it. It can happen sometimes.
Force close simulator and start it again!
I am including this response for those, who like me, are seeking an solution for this problem after upgrading to Xcode 8.
The simulator began using only a portion of the display, as described in the question, when testing against iOS 8.x. The symptoms were that 1/4 of the display was showing if the window scale was set to 50%, 1/9 would show if the scale was set to 33%, etc. The entire display would show only if the scale was set to 100%, which is a real pain when using an iPad simulator.
The solution for me was to turn off "Optimize Rendering for Window Scale" under the "Debug" menu, which first seems to have appeared in Xcode 8. The 8.x simulators displayed properly after that.
Looking at the image..
I think it has something to do with the resolution/scale of the simulator.. I dont use Xcode 6.3.1 though...
since it's 5s the screen resolution/scale is x2.. so instead of 320x568 it must be 640x1136..
why dont you use the device frame rect to fill the screen? something like self.view.frame ?
its hard to guess what causing your problem,show us something that may help.. :)
Visit for more details:
iPhone Simulator Quarter or Top Left part of the screen[Fixed]
Watch the video from this link: iPhone Simulator - Quarter of the screen [Fix]
Step 1: “Force Quit” the iOS Simulator
Step 2: Open “Spotlight Search” and type “Chameleon Wizard” (if you installed Chameleon Bootloader)
Step 3: In that popup window, click on “org.chameleon.Boot”
Step 4: Uncheck display_0, Graphics Mode(Clear that Dropbox also), cpus=1, npci=0x3000, dart=0. Below shows an image with checked items those mentioned here. Just uncheck it all.
Step 5: Restart your Mac and try.
I'm using macbook Air and using the iphone Simulator. I changed it to Retina 4 inch, and the screen of the simulator become so big! is there a way to reduce the size?
You can scale it with the following shortcuts:
⌘+1: 100%
⌘+2: 75%
⌘+3: 50%
⌘+4: 33%
⌘+5: 25%
Or in iOS Simulator: Window > Scale > ...
The iOS Simulator's Window menu has an option to display the simulator at 50%, 75%, or 100%. Try one of the smaller values to make it fit.
Now It's more flexible with Xcode 9-Simulator.
You can pick & drag any corner or simulator to resize it and set it according to your requirement.
There are several other ways also, to scale your simulator.
Using Terminal Command
Follow these steps to scale simulator using terminal commands
Close/Quit simulator. (if open)
Open Terminal app (using Spotlight search, Press ⌘ + SPACE to open spotlight search)
Copy following text and paste it next to terminal cursor.
defaults write ~/Library/Preferences/com.apple.iphonesimulator SimulatorWindowLastScale "0.3"
Open 'Simulator' (Run your iOS project using Xcode).
You will find simulator scale update.
Simulator scale options from Xcode Menu:
Menubar >> Window >> Scale >> "Here available options for simulator scaling"
Here is ref snapshot:
Does anybody know why home button is missing for iPad simulator only?
Its a simple redesign to make more space for the simulator screen. You can trigger the home button from the menu Hardware > Home Or using the shortcut: ⇧⌘H.
I don't think this is an enhancement at all. This is by far a notorious bug and a bad one. I know that home button action can be reproduced by cmd-H or its double click by doing cmd-H twice, though it could activate the slow motion animations too (annoying!). My point here is that whenever you run the simulator and start testing doing rotations (cmd-arrows), at one point you won't be able to tell if iPad orientation is to the right or to the left!... there's no visual clue whatsoever!
Bad Apple!, bad Apple!
It appears it is looking at whether or not there is adequate screen resolution to display the bezel. For example, I have a 17" Macbok pro that I develop on (1920x1200 resolution). When I launch an iPad development project and the suimulator comes up on my Macbook pro's desktop, no problem, the bezel shows. But let's say I then drag it over to my external monitor which is 1920x1080, then quit and relauinch the simulator... it comes up without a bezel.
My co-worker who has a Macbook Pro 13" (lower resolution), never sees the bezel. I suspect the newer retina Macbook Pros will always show a bezel.
This is of course, al pertaining to the regular, non-retina iPad simulator. I am not sure if given adequate screen resolution, the iPad retina simulator would show a bezel or not?
See http://openradar.appspot.com/11017007 for the real answer: "Engineer who removed the bezel from scaled iOS Sim not thanked enough, probably"
I personally don't need more screen space for the simulator with my Thunderbolt 27" display. I'd like the frame back, thank you very much! I also noticed with this version the application icons often show as blank white icons, even for Safari and Photos.
No, but you can trigger it from the menu bar (Hardware -> Home).