UIButton上的详细信息披露指示器 [英] detail disclosure indicator on UIButton

查看:41
本文介绍了UIButton上的详细信息披露指示器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有一种简单的方法将详细信息显示图标放在UIButton上?我正在使用导航控制器,并且希望按下按钮以将新视图推入堆栈,所以我认为详细信息显示图标将是适当的,但是我还没有找到一种简单的方法来实现这一点.

Is there a simple way to place a detail disclosure icon on a UIButton? I'm using a navigation controller and I want a button press to push a new view on the stack, so I thought a detail disclosure icon would be appropriate, but I haven't found a straightforward way to do that yet.

我想到的是诸如Clock应用程序的Timer子视图中的"When Timer Ends"按钮.

What I have in mind is something like the "When Timer Ends" button in the Timer subview of the Clock app.

推荐答案

计时器结束时"按钮"实际上不是按钮,而是样式繁重的UITableViewCell.

That "When Timer Ends" "button" isn't really a button, but a heavily styled UITableViewCell.

当然,您仍然可以将其实现为按钮.只需创建2个包含公开指示器的图像,然后使用 -setBackgroundImage:forState:.

Of course you can still implement it as a button. Just create 2 images containing the disclosure indicator, and use -setBackgroundImage:forState:.

这篇关于UIButton上的详细信息披露指示器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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