有一个 Highlight Tint
Interface Builder中的选项 UIButton
。是否有可能以编程方式为所有人更改它 UIButton
在iOS 5 ....使用某种外观协议的东西或其他一些解决方法?
有一个 Highlight Tint
Interface Builder中的选项 UIButton
。是否有可能以编程方式为所有人更改它 UIButton
在iOS 5 ....使用某种外观协议的东西或其他一些解决方法?
您可以将其设置为
[button setTintColor:[UIColor grayColor]];
这相当于IB中的hightlight色调选项,仅适用于突出显示的状态。
更新: 要为应用中的所有按钮实现此功能,请使用以下命令:
[[UIButton appearance] setTintColor:[UIColor orangeColor]];
它将为所有人设定 UIButton
你将在你的应用程序中使用它。
有关详细信息,请查看此处 UIAppearance协议。
您可以将其设置为
[button setTintColor:[UIColor grayColor]];
这相当于IB中的hightlight色调选项,仅适用于突出显示的状态。
更新: 要为应用中的所有按钮实现此功能,请使用以下命令:
[[UIButton appearance] setTintColor:[UIColor orangeColor]];
它将为所有人设定 UIButton
你将在你的应用程序中使用它。
有关详细信息,请查看此处 UIAppearance协议。