更改附件类型 Swift 的颜色 [英] Change color of accessoryType Swift

查看:26
本文介绍了更改附件类型 Swift 的颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将我的单元格附件类型的颜色从蓝色更改为白色.textColor 已经设置为白色.你们有人知道怎么做吗?

I'd like to change the color of my cell accessoryType from blue to white. The textColor is already set to white. Does someone of you guys know how to do this?

我的代码:

cell!.accessoryType = UITableViewCellAccessoryType.Checkmark

推荐答案

您可以将 UITableViewCell tintColor 属性设置为所需的颜色:

You can set your UITableViewCell tintColor property to the desired color:

[cell setTintColor:[UIColor whiteColor]];

这篇关于更改附件类型 Swift 的颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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