Swift UIColor颜色设置RGBA
2018-05-09 本文已影响27人
tuxw
第一种
self.lineLabel?.backgroundColor =RGBA(r:242, g:242, b: 242, a: 1)
第二种
UIColor(r:255,g:255,b:255)
第一种
self.lineLabel?.backgroundColor =RGBA(r:242, g:242, b: 242, a: 1)
第二种
UIColor(r:255,g:255,b:255)