简体   繁体   English

Xcode 7.1 iOS 9.1模拟器透明

[英]Xcode 7.1 iOS 9.1 Simulator transparent

I just recognized that I can see thru the iOS Simulator if an UIView is defined with (semi-) transparent content. 我刚刚认识到,如果使用(半)透明内容定义了UIView,则可以通过iOS模拟器看到。 But I can not make a screenshot of it, on the screenshot the effect is gone. 但是我无法对其进行截图,在截图上的效果已经消失了。

这里的截图

The (custom) navigation bar on top has alpha set to CGFloat(0.9). 顶部的(自定义)导航栏的Alpha设置为CGFloat(0.9)。

Here a screenshot taken with an iPhone 6: 以下是使用iPhone 6拍摄的屏幕截图:

在此处输入图片说明

Zoom in and you can see thru the simulator window on Xcode. 放大,您可以在Xcode上的模拟器窗口中看到。 I assume this is a bug, or is it intended behavior of the OS X transparency effects? 我认为这是一个错误,还是OS X透明效果的预期行为? If it is intended, can I turn it off? 如果需要,可以关闭它吗?

Ok, I have found the problem. 好的,我发现了问题。 Actually it is not a transparency effect but a display problem. 实际上,这不是透明效果,而是显示问题。 I am using an iMac 27inch with an IPS LCD display, which suffers heavily from "screen burning". 我正在使用配备IPS LCD显示屏的iMac 27英寸显示器,该显示器严重受“屏幕烧毁”的困扰。 Xcode is standing on this position for hours so it burned in into the display. Xcode在这个位置上站立了几个小时,因此烧入了显示屏。 That's why I can not make a screenshot - it is a hardware problem. 这就是为什么我无法制作屏幕截图的原因-这是硬件问题。

https://discussions.apple.com/thread/5255653?tstart=0 https://discussions.apple.com/thread/5255653?tstart=0

Yeah this is going to be a hardware / screen problem. 是的,这将是硬件/屏幕问题。 Should not translate to your app. 不应翻译为您的应用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM