【问题标题】:How to set background of radio button opaque /transparent?如何设置单选按钮不透明/透明的背景?
【发布时间】:2019-03-18 23:14:40
【问题描述】:

我在 Mac 的 swift 项目中想使用单选按钮,但我的背景颜色相同。如何将背景设置为不透明或更改背景颜色?

【问题讨论】:

    标签: swift macos radio-button background-color


    【解决方案1】:

    我找到了解决此问题的方法。将单选按钮的文本设置为“”,将 rb 添加到水平堆栈视图,然后将标签添加到此堆栈视图并将其背景颜色设置为视图的 bc。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-05-24
      • 2014-06-20
      • 2012-07-27
      • 1970-01-01
      • 2015-02-22
      • 1970-01-01
      • 2011-09-15
      • 2015-07-24
      相关资源
      最近更新 更多