简体   繁体   English

Xcode 6,主故事板,颜色关闭

[英]Xcode 6, main storyboard, colors off

The colors on the main storyboard doesn't correspond to what the simulator is rendering. 主故事板上的颜色与模拟器正在渲染的颜色不对应。 How come? 怎么会?

在此处输入图片说明

为了以防万一,请确保您没有更改任何视图或超级视图的alpha或代码中的颜色。

Here you can find a interesting explanation, but here are the basics: 在这里您可以找到一个有趣的解释,但是这里是基础知识:

  1. You need to use the Digital Color Meter, with the option "Display in sRGB". 您需要使用带有“以sRGB显示”选项的数字色度计。

  2. Pick the desired color from your design. 从设计中选择所需的颜色。

  3. Apply the RGB values given by Digital Color Meter in the Interface Builder by previously choosing Generic RGB profile on the gear icon. 通过事先在齿轮图标上选择“通用RGB”配置文件,应用“界面生成器”中数字色度计给定的RGB值。

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

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