【发布时间】:2016-11-12 15:56:15
【问题描述】:
我在以下位置设置了一张图片作为背景:
self.view.backgroundColor = UIColor(patternImage: UIImage(named: "background")!)
问题是如何设置它的不透明度或“alpha”。 我试过了
colorWithAlphaComponent(0.5)
但它只是使图像变暗。我希望它更亮。
【问题讨论】:
标签: swift background transparent alpha