Screen content is only shown in a part of screen in iOS Simulator

别说谁变了你拦得住时间么 提交于 2019-12-12 14:50:26

问题


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


回答1:


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




回答2:


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:


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




回答4:


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.



来源:https://stackoverflow.com/questions/30272125/screen-content-is-only-shown-in-a-part-of-screen-in-ios-simulator

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