要匹配的文本颜色默认UIButton颜色[蓝色] [英] Text Color to Match Default UIButton Color [Blue]

查看:89
本文介绍了要匹配的文本颜色默认UIButton颜色[蓝色]的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

默认的UIButton圆形矩形是深蓝色。我希望我的单元格文本在表格中与这种蓝色相匹配。

The default UIButton round rectangle is that dark blue. I want my cell's text in a table to match this blue color.

我正在使用此代码,但我能找到的唯一蓝色是亮蓝色......

I am using this code but the only blue I can find is a bright blue...

cell.textLabel.textColor = [UIColor blueColor];


推荐答案

使用此代码使用RGB值设置颜色

Use this code to set the color using RGB value

cell.textLabel.textColor = [UIColor colorWithRed:.196 green:0.3098 blue:0.52 alpha:1.0];

这篇关于要匹配的文本颜色默认UIButton颜色[蓝色]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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