什么是 Xcode 中的色调? [英] What is tint in Xcode?

查看:33
本文介绍了什么是 Xcode 中的色调?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我找不到答案的非常基本的问题.什么是 Xcode 中的色调,为什么所有视图的默认色调都是蓝色?它有什么影响?我注意到这些视图中某些图像的颜色看起来不太正确,除非我将色调设置为白色,而且不得不将每个新视图的色调设置为白色真的很烦人,因为我不明白它的作用.

Really basic question that I can't find the answer to. What is tint in Xcode and why is the default tint for all views blue? What does it affect? I've noticed that colors of some images within these views don't look quite right unless I set the tint to white and it's really annoying to have to set every new view's tint to white just because I don't understand what it does.

推荐答案

这篇文章有很好的解释和通读,但是总而言之,色调是一种用您选择的颜色突出显示交互式元素的简单方法.

This article has a great explanation and run through of it, but to sum up, tint is an easy way to highlight interactive elements with a color of your choice.

它还与 UIImage 结合使用以将其 renderingMode 属性设置为 UIImageRenderingModeAlwaysTemplate 或(在某些情况下,如标签栏中的图像)UIImageRenderingModeAutomatic.我的猜测是,当某些图像将颜色更改为蓝色时,您会遇到这种情况,这是默认应用程序 tintColor.

It is also used in conjunction with UIImage to color an image with its renderingMode property set to UIImageRenderingModeAlwaysTemplate or (in certain cases like images in tab bars) UIImageRenderingModeAutomatic. My guess is that this is what you are running into when certain images change their color to blue, which is the default application tintColor.

这篇关于什么是 Xcode 中的色调?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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