Screen content is only shown in a part of screen i

2019-07-02 01:01发布

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

4条回答
Lonely孤独者°
2楼-- · 2019-07-02 01:45

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.

查看更多
神经病院院长
3楼-- · 2019-07-02 01:58

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.

Uncheck what already checked Step 5: Restart your Mac and try.

查看更多
疯言疯语
4楼-- · 2019-07-02 02:01

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.. :)

查看更多
萌系小妹纸
5楼-- · 2019-07-02 02:03

You just need to restart it. It can happen sometimes. Force close simulator and start it again!

查看更多
登录 后发表回答