【问题标题】:How to set the color of aUIButton?如何设置aUIButton的颜色?
【发布时间】:2012-02-28 23:57:02
【问题描述】:

知道如何设置 UIButton 的背景颜色吗?

我尝试使用

self.sendButton.backgroundColor = [UIColor greenColor];

但是没有用。

【问题讨论】:

标签: ios uibutton


【解决方案1】:

您需要使用自定义按钮。您可以将图像设置为背景或定义 UIColor。

看看这些链接:

Iphone UIButton background color

Is it even possible to change a UIButtons background color?

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2014-10-07
    • 2013-01-10
    • 2011-12-13
    • 2013-09-19
    • 1970-01-01
    • 2012-03-21
    • 2018-07-22
    • 1970-01-01
    相关资源
    最近更新 更多