如何使UITableViewCellAccessoryDisclosureIndicator以橙色而不是灰色显示? [英] How do I make UITableViewCellAccessoryDisclosureIndicator visible in orange color instead of gray color?

查看:90
本文介绍了如何使UITableViewCellAccessoryDisclosureIndicator以橙色而不是灰色显示?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是iPhone开发的新手。我使用 UITableViewCellAccessoryDisclosureIndicator 创建了一个应用程序。我给这样的行:

I am new to iPhone development.I have created an application using UITableViewCellAccessoryDisclosureIndicator. I give the line like this:

cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator ;

它显示灰色的指示箭头。我想显示橙色而不是灰色的指示器。我该怎么办?

It shows an indicator arrow in gray color. I want to display indicator in orange color instead of gray color. What should I do?

推荐答案

你必须使用 accessoryView 属性 UITableViewCell 检索UIView对象,并以您想要的任何颜色添加您想要的任何颜色。

You have to use accessoryView property of UITableViewCell to retrieve UIView object and add whatever you want into that view in whatever color you desire.

这篇关于如何使UITableViewCellAccessoryDisclosureIndicator以橙色而不是灰色显示?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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