iOS 模拟器在屏幕的 3/4 上显示黑色 [英] iOS simulator showing black on 3/4 of screen

查看:48
本文介绍了iOS 模拟器在屏幕的 3/4 上显示黑色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试了几个在 Xcode 6.3 模拟器的全新安装 (yosemite) 中运行的应用程序,但它们都只显示在模拟器屏幕的前 1/4 处.

I tried several apps running in fresh install (yosemite) of Xcode 6.3 simulator but all of them displays only on first 1/4 of simulator screen.

我改变了缩放比例 - 没有帮助.
所有设备都有这个问题.
在另一台 Mac 上,应用程序在模拟器中正确显示.

I changed scaling - did not help.
All devices have this problem.
On another mac the apps are displaying in simulator correctly.

这里是模拟器的截图:

推荐答案

我经常在我用来开发 iOS 本机应用程序的 VMWare OSX 开发机器上遇到这个问题.从我所看到的情况来看,它与 Window > Scale 菜单选项被设置为与之前启动的 100% 不同的东西有关,这会扰乱所有后续初始化阶段.

I frequently have this issue with a VMWare OSX development machine I'm using to develop iOS native apps. From what I've seen it is related to the Window > Scale menu option being set to something different than 100% from a previous launch that messes around all the subsequent initialization phases.

要摆脱它,请尝试这样做:

To get rid of it, try doing this:

  • 退出 VMWare 全屏模式,切换到窗口模式.
  • 使用独立快捷方式(不是来自 XCode)启动 iOS 模拟器,然后等待它完成加载/启动默认设备.
  • 转到窗口 > 缩放并将其设置为 100%.
  • 转到 iOS 模拟器 > 重置内容和设置...,然后单击确定.
  • 使用独立应用(不是来自 XCode)关闭并重新打开 iOS 模拟器.
  • Exit from VMWare full-screen mode, switching to windowed mode instead.
  • launch iOS Simulator using its stand-alone shortcut (not from XCode) and wait until it finishes loading/booting the default device.
  • go to Window > Scale and set it to 100%.
  • go to iOS Simulator > Reset contents and settings... and click OK.
  • close and reopen the iOS Simulator using its stand-alone app (not from XCode).

一旦您看到它加载时没有出现故障,您就可以切换回 VMWare 全屏模式,也可以根据需要使用 Window > Scale.

As soon as you see it loading without the glitch, you can switch back to VMWare full-screen mode and also use the Window > Scale as you like.

这篇关于iOS 模拟器在屏幕的 3/4 上显示黑色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆