查看背景颜色和按钮图像具有相同的代码但外观不同(iOS) [英] View background color and button image has the same code but different look (iOS)

查看:95
本文介绍了查看背景颜色和按钮图像具有相同的代码但外观不同(iOS)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我通过故事板为UIView设置了背景颜色,但我在模拟器中看到了更亮的颜色。它与Button图像背景不同,代码相同,草图使用相同的代码。 Alpha设置1.
有什么不对?

I set background color for UIView through storyboard, but I see brighter color in simulator. And it different with Button image background with the same code and sketch with the same code. Alpha set 1. What can be wrong?

推荐答案

有时你需要将RGB设置为自然状态试试在颜色设置中使用通用RGB

Sometimes you need to set the RGB to their natural state try using "generic RGB" in the colour settings

这篇关于查看背景颜色和按钮图像具有相同的代码但外观不同(iOS)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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