【问题标题】:UILabel with given transparency but textLabel should be opaqueUILabel 具有给定的透明度,但 textLabel 应该是不透明的
【发布时间】:2011-11-21 19:11:07
【问题描述】:

我有一个 UILabel,它应该具有透明度 (alpha) = .6,但 UILable 的文本应该具有 alpha = 1。这可能吗?感谢您提前提出任何建议...

【问题讨论】:

    标签: iphone ios transparency uilabel


    【解决方案1】:
    label.backgroundColor=[UIColor colorWithWhite:0 alpha:0.6];
    label.textColor=[UIColor colorWithWhite:0 alpha:1];
    

    【讨论】:

      猜你喜欢
      • 2017-01-11
      • 1970-01-01
      • 2011-07-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-06-26
      • 1970-01-01
      相关资源
      最近更新 更多