更改单元格选择上的披露指示颜色 [英] Change disclosure indicator color on cell selection

查看:77
本文介绍了更改单元格选择上的披露指示颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经阅读了一些关于此的帖子,但仍然无法得到我的问题的答案。

I've read some posts on this, but still can't get the answer to my question.

我有一个披露指标。

I have a disclosure indicator.

我这样添加:

cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;

一切正常并且很好,我唯一要改变的是当我按下牢房时,披露指标将颜色变为白色。 我不希望这样。所以我的问题是如何使披露指标颜色固定,而不是改变?

Everything works fine and is good, the only thing i want to change is when i press down the cell, disclosure indicator changes color to white. I don't want that. So my question is how to make the disclosure indicator color fixed, and not changing?

推荐答案

你需要使用自定义配件视图为了这。
语法:

You need to use a custom accessory view for this. Syntax:

cell.accessoryView = [[[UIImageView alloc] initWithImage:[UIImage imageNamed:@"accessory.png"]] autorelease];

您在这里指定带图像附件的图片视图 .png

Here you are assigning an image view with an image accessory.png

到您手机的配件视图。

这篇关于更改单元格选择上的披露指示颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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